Re: [Rpy] Arguments to high-level plotting commands

2008-02-14 Thread Peter
> By the way, > > k = rpy.r.terrain.colors(100) > > fails. Is there trick to get access to the terrain.colors or to other R > functions which have a dot (I don't know if there are many)? Yes, as the rpy documentation explains, use an underscore instead: k = rpy.r.terrain_colors(100) Peter -

Re: [Rpy] Arguments to high-level plotting commands

2008-02-14 Thread Thomas Walter
Hi Marco. Usually, you can replace them by underscore, i.e. k = rpy.r.terrain_colors(100) should work. Cheers, thomas. marco hofmann wrote: >Peter schrieb: > > >>marco hofmann wrote: >> >> >>>Hi there, >>>I'm not familiar with R.. and use RPy to use the graphical features of R >>>with

Re: [Rpy] Arguments to high-level plotting commands

2008-02-14 Thread marco hofmann
Peter schrieb: > marco hofmann wrote: >> Hi there, >> I'm not familiar with R.. and use RPy to use the graphical features of R >> with Python. >> >> ... >> >>> rpy.r.image(x,y,z,axes=FALSE) >> >> Traceback (most recent call last): >>File "", line 1, in >> rpy.r.image(x,y,f,axes=FALSE) >

Re: [Rpy] Arguments to high-level plotting commands

2008-02-14 Thread Peter
marco hofmann wrote: > Hi there, > I'm not familiar with R.. and use RPy to use the graphical features of R > with Python. > > ... > >>> rpy.r.image(x,y,z,axes=FALSE) > > Traceback (most recent call last): >File "", line 1, in > rpy.r.image(x,y,f,axes=FALSE) > NameError: name 'FALSE' is

[Rpy] Arguments to high-level plotting commands

2008-02-14 Thread marco hofmann
Hi there, I'm not familiar with R.. and use RPy to use the graphical features of R with Python. My problem is that passing arguments to plotting functions does not work in Python as in R. For example in R: > x<-c(1,2,3) > y=x > f<-c(1,2,3,4,5,6,7,8,9) > z<-array(f,dim=c(3,3)) > image(x,y,