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