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,z)
 > image(x,y,z,axes=FALSE)

produces an image plot without showing the axes,

and in Python:

 >>> import rpy
 >>> import numpy
 >>> x=[1,2,3]
 >>> y=x
 >>> f=[[1,2,3],[4,5,6],[7,8,9]]
 >>> z=numpy.matrix(f)
 >>> rpy.r.image(x,y,z)
 >>> rpy.r.image(x,y,z,axes=FALSE)

Traceback (most recent call last):
   File "<pyshell#8>", line 1, in <module>
     rpy.r.image(x,y,f,axes=FALSE)
NameError: name 'FALSE' is not defined

rpy.r.image(x,y,z) does only work without additional arguments. Does 
anyone know how I can code that in Python?

Thanks and regards,

Marco

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to