[Rpy] Rpy import error in django app

2009-05-22 Thread wierob
Hi, I tried to use Rpy inside a Django app but got the following error that prevents importing and using Rpy: File "/home/wierob/Desktop/mysite/../mysite/polls/views.py", line 1, in from rpy import * File "/usr/lib/python2.6/dist-packages/rpy.py", line 346, in r = R() File "/usr/

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

2009-05-22 Thread Mark Larsen
> How do I get the matrix() function (or array for that matter) working > properly for me! Hmm, this works perfectly for me: >>> import numpy >>> from rpy import r >>> import numpy >>> bars = numpy.array([[25,15,26,25,18],[45,32,28,12,45]]) >>> r.barplot(bars) [0.69996, 1.899