Just a quick question, I hope. I am trying to draw a heatmap of a numpy
array. Here is what I have tried and the output:
In [43]: x=numpy.array([1,2,3,4,5,6],dtype=numpy.float64)
In [44]: x.shape=2,3
In [45]: rpy.r.heatmap(x)
---------------------------------------------------------------------------
<class 'rpy.RException'> Traceback (most recent call last)
/home/sdavis/python/source/rpy-1.0-RC3/<ipython console> in <module>()
<class 'rpy.RException'>: Error in function (x, Rowv = NULL, Colv = if
(symm) "Rowv" else NULL, :
'x' must be a numeric matrix
So, the bigger question is what is the conversion from numpy arrays to r
objects? And where would I look to find that out if I didn't know (and,
obviously, I don't)?
Thanks,
Sean
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list