On Mon, Sep 28, 2009 at 4:57 PM, Peng Yu <pengyu...@gmail.com> wrote: > Hi, > > In R, I can plot a 2 column matrix >> x=1:3 >> y=1:3 >> plot(x,y) >> plot(cbind(x,y)) > > But I'm wondering why I can not do so with rpy. In the following > python code, the last line does not work. Can somebody let me know > why? > > import rpy > > x = [1, 2, 3] > y = [1, 2, 3] > rpy.r.plot(x, y) > > l = [ [1, 2, 3], [1, 2, 3] ] > rpy.r.plot(l[0], l[1]) > > rpy.r.plot(l)
Can somebody let me know how to do it? Do I need to convert the list 'l' to an R matrix first? Thank you! Regards, Peng ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list