On Wed, Dec 9, 2009 at 3:23 AM, Mark Larsen <larsen...@gmail.com> wrote: > >> slope1 = with_mode(NO_CONVERSION, r.zyp.sen)(r("p~t")) > > A quick glance tells me this line is a problem. The "." is reserved > in Python for modules/classes, try with an underscore: > > slope1 = with_mode(NO_CONVERSION, r.zyp_sen)(r("p~t"))
Also you never defined x and y, but you did define p and t: p = [11.3, -0.7, -17.6, -6.7, -3.0, -17.6, -6.2, 24.0, 25.9, -26.3, -19.3, -4.9, 5.5, -11.6, 6.6, -17.8] t= [2.2, 2.4, 2.5, 1.7, 2.6, 2.8, 2.0, 2.9, 3.4, 3.7, 3.2, 3.2, 1.8, 2.3, 1.7, 3.7] ... r.plot(x,y,ylim=(-30,30), xlim=(1,5)) Should this be: p = [11.3, -0.7, -17.6, -6.7, -3.0, -17.6, -6.2, 24.0, 25.9, -26.3, -19.3, -4.9, 5.5, -11.6, 6.6, -17.8] t= [2.2, 2.4, 2.5, 1.7, 2.6, 2.8, 2.0, 2.9, 3.4, 3.7, 3.2, 3.2, 1.8, 2.3, 1.7, 3.7] ... r.plot(t,p,ylim=(-30,30), xlim=(1,5)) (or switch t and p as appropriate) Peter ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list