0
votes
1answer
30 views

Plotting greek letters and plain text in ggplot2 graphs via Rpy2

How can I make an x or y label like "$\alpha$ + $\beta$ is my label" in a ggplot2 plot within Rpy2? I've tried getting any greek letter on the plot using r.expression: p = ggplot2.ggplot(mydata) + ...
2
votes
1answer
77 views

equivalent of scale_size_area in rpy2 for ggplot2 in Python?

Does rpy2 have an equivalent of scale_size_area() from ggplot2? If not, how can I write it? I'm referring to this function: http://docs.ggplot2.org/0.9.3/scale_size_area.html I would like to scale ...
1
vote
1answer
25 views

Changing legends in ggplot2 with rpy2

I am trying to customize a legend in ggplot2 using rpy2. I notice that ggplot2 through rpy2 does not have scale_shape_discrete and other methods that are shown in ...
2
votes
1answer
239 views

Inputting quantiles to ggplot geom_boxplot using rpy2 in python

I have the following boxplot: import os iris = pandas.read_table(os.path.expanduser("~/iris.csv"), sep=",") iris["Species"] = iris["Name"] r_melted = ...
0
votes
1answer
110 views

Changing factor order in ggplot2 with Rpy2 in Python

I'm trying to translate the following code into Rpy2 with no success: neworder <- c("virginica","setosa","versicolor") library("plyr") iris2 <- arrange(transform(iris, ...
0
votes
1answer
33 views

geom_dotplot in rpy2?

When I try to use gplot2.geom_dotplot I get the error: AttributeError: 'module' object has no attribute 'geom_dotplot' Does this function have a different name in Rpy2? thanks.
3
votes
2answers
155 views

using rpy2 with IPython notebooks?

Is it possible to use rpy2 (calling ggplot2) with IPython notebooks, and then save them (and share on NBViewer like other notebooks http://nbviewer.ipython.org/)? Is there any challenge in having the ...
0
votes
1answer
78 views

removing base line from geom_histogram in ggplot2 via rpy2?

I am plotting a histogram with ggplot2 via rpy2 as follows: p = ggplot2.ggplot(df) + \ ggplot2.aes_string(x="x", colour="sample") + \ ggplot2.facet_grid(Formula("sample ~ .")) + \ ...
2
votes
1answer
71 views

is ggplot2.layer fully supported in Rpy2?

I am trying to use ggplot2 layer in my graph plotted via Rpy2, which I don' see described in the manual (http://rpy.sourceforge.net/rpy2/doc-2.1/html/graphics.html) Is the correct form for calling ...
0
votes
2answers
86 views

Using log axes scales in ggplot from Rpy2

I am trying to format my axes on a log scale from Rpy2 using ggplot. In ordinary R, it's possible to do: qplot(data=data, x=x, y=y) + geom_point() + scale_y_log2() To get a log2 axis. When I try ...
1
vote
1answer
77 views

Turning off ggplot2 grids in rpy2

What's the right way to turn off all grids in Rpy2 while using the theme_bw theme? I know I can turn on theme_bw as follows: ggplot2.theme_set(ggplot2.theme_bw(12)) but unsure how to turn off the ...
2
votes
1answer
95 views

Requests per second, per hour, per day out of a time series

I am relatively new to R, and it's the first time I am trying to use it to actually analyze some data. The problem is the following: I have a CSV file containing a log of the number of requests served ...
6
votes
2answers
324 views

How to make a sunburst plot

So far I have been unable to find an R library that can create a sunburst plot like those by John Stasko. Anyone knows how to accomplish that in R or Python?
3
votes
5answers
678 views

Rpy2 & ggplot2: LookupError 'print.ggplot'

Unhindered by any pre-existing knowledge of R, Rpy2 and ggplot2 I would never the less like to create a scatterplot of a trivial table from Python. To set this up I've just installed: Ubuntu 11.10 ...
1
vote
1answer
323 views

ggplot2 no plot becase ggsave no save

I have a python script using the pyper library (pipes to R), and I am trying to get some output out of ggplot2. I have tried both the 'ggsave' method and the 'device(...); dev.off()' methods and ...
1
vote
1answer
363 views

ggplot2 not present in rpy2 for python?

I am working with rpy2 v2.1.9 in Python3.2, I don't understand why I can't use the library ggplot2 import rpy2 from rpy2.robjects import r r.library("ggplot2") Here is the error message I got ...
3
votes
1answer
526 views

RPY2: importr fails with .Renviron

Here's what should and does happen using rpy2.robjects.packages.importr for base R-packages (e.g. stats): >>> from rpy2.robjects.packages import importr >>> importr('stats') ...
3
votes
3answers
2k views

ggplot2 hell with rpy2-2.0.7 + python 2.6 + r 2.11 (windows 7)

i am using rpy2-2.0.7 (i need this to work with windows 7, and compiling the binaries for the newer rpy2 versions is a mess) to push a two-column dataframe into r, create a few layers in ggplot2, and ...