>>> import rpy2.robjects as robjects
>>> r = robjects.r
>>>
>>> x = [1,2,3]
>>> y = [2,4,2]
>>>
>>> r.png('plot.png',width=500,height=400)
>>> r.plot(x,y)
>>> r['dev.off']()
>>>
dev_off() turns off the device, in this case the device is writing to a file
so dev_off() flushes the buffer and clos
Hi everyone,
I am happy to join the world of rpy. I think it is really great!
Now, I have a problem with extracting p-value after the ANOVA by using rpy
I use the python script as follows:
pvalue=r.summary(r.aov(r.formula("V~VAR"),r.data_frame(V=value,VAR=gNames)))
[[1]][[5]][1]
in R, indexing the
Configuration :
Python 2.5.2
Windows Vista
R 2.7.0
I have been using rpy-1.0.3-R-2.7.0-win32 fine for quite some time and am
very happy with it.
I am attempting to get a very simple program running on
rpy2-2.0.1.win32-py2.5 without success.
I am trying to save a simple