Re: [Rpy] rpy2-2.2.0 release candidate

2011-05-22 Thread Moritz Beber
On 05/22/2011 07:40 PM, Laurent Gautier wrote: > On 2011-05-22 19:14, Thomas Kluyver wrote: >> I still see one failure with 2.7: >> >> == >> FAIL: testInitFromSeqInvalidOverflow >> (rpy2.rinterface.tests.test_SexpVector.IntSexpVect

Re: [Rpy] LookupError: 'show' not found

2011-04-22 Thread Moritz Beber
On 04/22/2011 05:22 PM, Brent Pedersen wrote: > On Fri, Apr 22, 2011 at 9:03 AM, Brent Pedersen wrote: >> On Fri, Apr 22, 2011 at 8:34 AM, Brent Pedersen wrote: >>> hi, I am getting some errors with the latest version of rpy2, any ideas? >>> >>> >>> >>> $ python rpy/tests.py >>> Error in sub("[[:

Re: [Rpy] Replacement operations in matrices and data frames

2011-04-05 Thread Moritz Beber
On 04/05/2011 11:36 AM, Luca Beltrame wrote: > Hello, > > I'm trying to find a way to replace columns in matrices and data frames. For > a > data frame, the equivalent in R would be: > > mydataf$Column <- some_vector > > How can this be done from rpy2 (2.1.9), given that rx2() is a function and

[Rpy] sorting dataframe according to one column

2011-03-11 Thread Moritz Beber
Hi, my original problem was that the order of the labels in my plot was not the way I wanted. So I found a solution for ggplot2 at the following site: http://learnr.wordpress.com/2010/03/23/ggplot2-changing-the-default-order-of-legend-labels-and-stacking-of-data/ As an example I tried the follow

Re: [Rpy] themes

2011-03-10 Thread Moritz Beber
On 03/09/2011 08:27 PM, Laurent wrote: > On 09/03/11 13:19, Moritz Beber wrote: >> Hi all, >> >> I'm running rpy2 version 2.2.0dev and I had some problems with setting >> my background to a blank theme. calling ggplot2.theme_blank() gives me >> the followi

[Rpy] themes

2011-03-09 Thread Moritz Beber
Hi all, I'm running rpy2 version 2.2.0dev and I had some problems with setting my background to a blank theme. calling ggplot2.theme_blank() gives me the following error: Traceback (most recent call last): File "", line 1, in plots.ggplot2.theme_blank() File "/usr/local/lib/python2.6/dis

Re: [Rpy] R NULL value

2010-12-06 Thread Moritz Beber
On 12/06/2010 10:46 PM, Laurent Gautier wrote: > On 12/6/10 10:26 PM, Laurent Gautier wrote: >> On 12/6/10 7:17 PM, Moritz Beber wrote: > (...) >>> I found NULL in rpy2.robjects.constants but its type is>> 'rpy2.rinterface.Sexp'> whereas the returned NULL

[Rpy] R NULL value

2010-12-06 Thread Moritz Beber
Dear list members, in order to make sure that the return value of an rpy2 function is not NULL, I need access to the R NULL singleton to perform the comparison. In the new features section http://rpy.sourceforge.net/rpy2/doc-2.2/html/changes.html, I find exactly what I want: rpy2.rinterface.NULL.

[Rpy] multiple y positions (aesthetics strings) possible?

2010-09-04 Thread Moritz Beber
Hi everyone, I have a problem with achieving the following: I have a plot that I'm very happy with and I'd like to add some label text at certain positions. I use rpy2 and ggplot2. My problem is basically that for the geom_text I would like to specifiy a different aes_string so that I can cha