When testing some of the rpy2 documentation for ggplot2, a new graphics
window will popup, but will do so with only axes and no actual chart. The
spinning beach ball of death also continues spiraling. I simply used the
first geometry example (
http://rpy.sourceforge.net/rpy2/doc-dev/html/graphics.html#graphics) in the
docs. Has anyone else encountered this problem? I am running OS X 10.6.3, R
2.11.1, EPD 6.1 and rpy 2.2. Whoa, still have a spinning beach ball but the
histogram just popped up...can't move the graphics device window now tho.
Also get a 'Runtime error: No layers in plot' when subsequently calling
'whos' from ipython (trying rpy2 from ipython). Anyone encounter this
before? Code below:
mport rpy2.robjects.lib.ggplot2 as ggplot2
import rpy2.robjects as ro
from rpy2.robjects.packages import importr
datasets = importr('datasets')
mtcars = datasets.mtcars
stats = importr('stats')
gp = ggplot2.ggplot(mtcars)
pp = gp +\
ggplot2.aes_string(x='wt') +\
ggplot2.geom_histogram()
pp.plot()
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list