Hi  all,

I'm just getting started with using rpy2, but when I tried import ggplot2
as per the documentation, I get an error saying print.ggplot is not found.

I've described the problem in detail here, with the relevant parts copied
below:
http://stackoverflow.com/questions/9540316/rpy2-ggplot2-lookuperror-print-ggplot

 * Ubuntu 11.10 64 bit
 * `R version 2.14.2` (from r-cran mirror)
 * `ggplot2` (through `R> install.packages('ggplot2')`)
 * `rpy2-2.2.5` (through `easy_install`)

Following this I am able to plot some example dataframes from an
interactive R session using ggplot2.

However, when I merely try to import `ggplot2` as I've seen in an example I
found online, I get the following error:

    from rpy2.robjects.lib import ggplot2
      File ".../rpy2/robjects/lib/ggplot2.py", line 23, in <module>
        class GGPlot(robjects.RObject):
      File ".../rpy2/robjects/lib/ggplot2.py", line 26, in GGPlot
        _rprint = ggplot2_env['print.ggplot']
      File ".../rpy2/robjects/environments.py", line 14, in __getitem__
        res = super(Environment, self).__getitem__(item)
    LookupError: 'print.ggplot' not found

Can anyone help me resolve this issue?

Best,
Tim
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to