> 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

Your Numeric array is being converted into a list.

>>> from rpy import r
>>> import Numeric
>>> r.print_(bars)
[[1]]
[1] 25 15 26 25 18

[[2]]
[1] 45 32 28 12 45

[[25, 15, 26, 25, 18], [45, 32, 28, 12, 45]]
>>> r.is_list(bars)
True

How about-->

 r.barplot(r.matrix([25, 15, 26, 25, 18, 45, 32, 28, 12, 45],byrow=True,nrow=2))

------------------------------------------------------------------------------
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

Reply via email to