Re: [Rpy] rpy2 & hexbin graphs

2009-07-23 Thread Laurent Gautier
Wells Oliver wrote: > I cannot for the life of me get the following code to work... > > r = robjects.r > r.library('hexbin') > hits = {'y': [-99.406, -66.266], 'x': > [121.48, 34.141]} > bin = r.hexbin(hits['x'], hits['y'], xlab='', ylab='') > r.plo

[Rpy] rpy2 & hexbin graphs

2009-07-23 Thread Wells Oliver
I cannot for the life of me get the following code to work... r = robjects.r r.library('hexbin') hits = {'y': [-99.406, -66.266], 'x': [121.48, 34.141]} bin = r.hexbin(hits['x'], hits['y'], xlab='', ylab='') r.plot(bin, main=player['name']) The error

Re: [Rpy] Still accepting RPy Bugs?

2009-07-23 Thread Skipper Seabold
On Thu, Jul 23, 2009 at 7:12 AM, Peter wrote: > On Thu, Jul 23, 2009 at 12:02 PM, Laurent Gautier wrote: >>> >>> Since x is a NumPy array these can come in different flavours, and >>> perhaps something here is breaking rpy2 or R, e.g. >> >> The bug report if for rpy-1.0.x, I think. > In [2]: rpy._

Re: [Rpy] RPy2 win xp R plotting

2009-07-23 Thread wayne jones
Hi June Kim, Thats great. Both examples you supplied work for me. Thanks for your help. Wayne > Date: Thu, 23 Jul 2009 16:17:11 +0900 > Subject: Re: [Rpy] RPy2 win xp R plotting > From: junea...@gmail.com > To: lgaut...@gmail.com > CC: rpy-list@lists.sourceforge.net; wayne_be

Re: [Rpy] Still accepting RPy Bugs?

2009-07-23 Thread Peter
On Thu, Jul 23, 2009 at 12:02 PM, Laurent Gautier wrote: >> >> Since x is a NumPy array these can come in different flavours, and >> perhaps something here is breaking rpy2 or R, e.g. > > The bug report if for rpy-1.0.x, I think. Sorry, you are right. I would still try making a copy of the NumPy a

Re: [Rpy] Still accepting RPy Bugs?

2009-07-23 Thread Laurent Gautier
Peter wrote: > On Wed, Jul 22, 2009 at 10:00 PM, Skipper Seabold wrote: >> Thanks for the reply. I have a wrapper for RPy that makes the >> interface similar to some statistical models code that I am working on >> for SciPy, and this is how the bug comes up. The weird thing that I >> discovered i

Re: [Rpy] Still accepting RPy Bugs?

2009-07-23 Thread Peter
On Wed, Jul 22, 2009 at 10:00 PM, Skipper Seabold wrote: > > Thanks for the reply.  I have a wrapper for RPy that makes the > interface similar to some statistical models code that I am working on > for SciPy, and this is how the bug comes up.  The weird thing that I > discovered in trying to repli

Re: [Rpy] RPy2 win xp R plotting

2009-07-23 Thread June Kim
Two working examples, tested on DOS console and IDLE. #test1.py #r gui in a separate thread with processevents from rpy2 import robjects from rpy2 import rinterface import thread def refresh(): while True: rinterface.process_revents() time.sleep(0.1) def plot(): r

Re: [Rpy] RPy2 win xp R plotting

2009-07-23 Thread June Kim
On Thu, Jul 23, 2009 at 2:44 PM, Laurent Gautier wrote: > I am curious to hear whether this is changing much, since the win32-specific > fix proposed has been implemented since 2.0.3 > (http://rpy.sourceforge.net/rpy2/doc/html/changes.html#new-features) Yes, that works, too. > > You can also see