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()
> ... ''')
> <RVector - Python:0x2a96f3a638 / R:0xa278b8>
> 
> 
> 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 to pass my own data which is availabe before calling
> robjects.r( ) rather creating a data within robjects.r(''' '''). Also,
> I would like to parametrize path and name for pdf file (and other
> option for hist() also). How would one do this? If this is not an
> efficient way of using R pdf() and dev.off() function using rpy2, I
> would like to learn more.... 
> 
> 
> Thank you,
> Ki
> 
> 
> ------------------------------------------------------------------------------
> Crystal Reports &#45; New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty&#45;free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________ rpy-list mailing list 
> rpy-list@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to