>I think that RPy is installed and working fine except I cannot get any plots
>to appear.
>
>For example, if I type:
>
>>>> from rpy import *
>>>> x = r.c(1,2,3,4)
>>>> x
>[1, 2, 3, 4]
>>>> r.hist(x)
>{'density': [0.49999990000002015, 0.25, 0.24999999999999989], 'equidist':
>True, 'breaks': [1.0, 2.0, 3.0, 4.0], 'intensities': [0.49999990000002015,
>0.25, 0.24999999999999989], 'counts': [2, 1, 1], 'xname': '1:4', 'mids':
>[1.5, 2.5, 3.5]}
>>>>
>
>But no plot appears.

It works for me on both a linux box (Debian "testing" - current versions
of everything) and an OS X box (old versions - Apple's Python, R 2.6.1
dmg from CRAN, rpy 1.0rc3). HOWEVER - I have X11 installed on the OS X
box, and I note that R started and used X to display the plot.

Modern versions of R have support for an OS X native "quartz" output
device, which can be activated by calling "r.quartz()" from python,
or quartz() from R, but I'm not entirely sure where to go from there.

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to