I cannot for the life of me get the following code to work... r = robjects.r r.library('hexbin') hits = {'y': [-99.400000000000006, -66.269999999999996], 'x': [121.48999999999999, 34.140000000000001]} bin = r.hexbin(hits['x'], hits['y'], xlab='', ylab='') r.plot(bin, main=player['name'])
The error (on the line w/ r.plot): File "/usr/local/lib/python2.6/dist-packages/rpy2/robjects/__init__.py", line 422, in __call__ res = super(RFunction, self).__call__(*new_args, **new_kwargs) rinterface.RRuntimeError: Error in cut.default(rcnt, colorcut, labels = FALSE) : invalid number of intervals This works fine running in the actual R application- all you need to pass (seemingly) to plot() is the bin itself. Any tips? Thanks. -- Wells Oliver we...@submute.net
------------------------------------------------------------------------------
_______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list