from rpy import r
import Numeric
r.png('output_r_test.png')
bars = Numeric.array([[25,15,26,25,18],[45,32,28,12,45]])
print bars
r.barplot(bars, beside = "TRUE" )
r.dev_off()
Gives the following output:
[[25 15 26 25 18]
[45 32 28 12 45]]
Traceback (most recent call last):
File "r_test.py", line 70, in ?
r.barplot(bars, beside = "TRUE" )
rpy.RPy_RException: Error in -0.01 * height : non-numeric argument to binary
operator
My question is: the array "bars" looks to be all numeric to me- so what does
this error mean?
I am using Python2.4.1, R-2.7.0 on a windows platform.
Thanks in advance.
_________________________________________________________________
Brrr... its getting cold out there⦠Find someone to light your fire this winter
at Match.co.nz
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fdating%2Enz%2Emsn%2Ecom%2Fchannel%2Findex%2Easpx%3Ftrackingid%3D1048628&_t=773568480&_r=nzWINDOWSliveMAILemailTAGLINES&_m=EXT
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list