[Rpy] rpy2 and Pypi

2009-05-15 Thread Laurent Gautier
Hi, I only realized very recently, that although entries for the different rpy2 releases were properly created on Pypi, the source tarballs were not uploaded properly. This should now be solved from 2.0.4 and "easy_install rpy2" fetch and install the package. L. --

[Rpy] Barplot Error: rpy.RPy_RException: Error in -0.01 * height : non-numeric argument to binary operator

2009-05-15 Thread krysta Giles-Hansen
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

Re: [Rpy] Barplot Error: rpy.RPy_RException: Error in -0.01 * height : non-numeric argument to binary operator

2009-05-15 Thread Mark Larsen
> 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 >>