Here is a segment of the script I have:
#!/usr/bin/python
import sys, os, string
from rpy import *
scen = 'sresb1'
r.library('ks')
p = [11.3, -0.7, -17.6, -6.7, -3.0, -17.6, -6.2, 24.0, 25.9, -26.3, -19.3,
-4.9, 5.5, -11.6, 6.6, -17.8]
t= [2.2, 2.4, 2.5, 1.7, 2.6, 2.8, 2.0, 2.9, 3.4, 3.7, 3.2, 3.2, 1.8, 2.3, 1.7,
3.7]
x1 = r.cbind(t,p)
Hpi1 = r.Hscv(x = x1,pre='scale')
fhat = r.kde(x=x1,H=Hpi1)
r.plot(fhat)
in R I get a nice plot of contours for these 16 sets of x and y points. With
rpy and the above, I get:
Traceback (most recent call last):
File "plot_bivariate_dist2.py", line 49, in ?
r.plot(fhat)
rpy.RPy_RException: Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
What am I missing here?
Thanks,
Ed Maurer
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list