The following sequence worked.
r.pdf('/home/my/public_html/my.pdf')
r.hist(mydata)
r.['dev.off']()
Thanks!
Kylee
On Sat, Apr 25, 2009 at 5:15 AM, Peter wrote:
> On 4/25/09, laurent wrote:
> >
> > Did you try something like:
> > http://www.google.com/search?q=rpy2+dev.off
> > ?
>
> I think y
On 4/25/09, laurent wrote:
>
> Did you try something like:
> http://www.google.com/search?q=rpy2+dev.off
> ?
I think you need to setup an rpy2 FAQ.
More specific suggestions: I would also include this (using dev.off)
as an example here:
http://rpy.sourceforge.net/rpy2/doc/html/introduction.ht
Did you try something like:
http://www.google.com/search?q=rpy2+dev.off
?
On Fri, 2009-04-24 at 17:58 -0700, Kylee Kim wrote:
> The following seems to be working.
>
>
> >>> robjects.r('''
> ... x <- rnorm(100)
> ... pdf('/home/my/public_html/test.pdf')
> ... hist(x)
> ... dev.off()
> ... ''')
>
The following seems to be working.
>>> robjects.r('''
... x <- rnorm(100)
... pdf('/home/my/public_html/test.pdf')
... hist(x)
... dev.off()
... ''')
I was able to retrieve the histogram in pdf format. But I would like to pass
some python variables into robjects.r( ). For example, I would want t
Hi,
I am trying to save plot outputs in pdf file format using RPy2.
The usual simple routine that I would do in R is something like this:
x <- rnorm(100)
pdf("/home/me/public_html/test.pdf")
hist(x)
dev.off()
Now, using Rpy2, I am trying the same job, but I am getting error message
for r.dev.off(