[R] Splines under tension
wdunlap at tibco.com
Mon May 17 05:30:57 CEST 2010
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of sam.e
> Sent: Sunday, May 16, 2010 10:13 AM
> To: r-help at r-project.org
> Subject: Re: [R] Splines under tension
> Thank you for the helpful direction to the smoothing splines
> function, it was
> very helpful and is exactly what i am trying to do. My data
> however is 3-D,
> i.e. i have x and y values which are coordinates for
> different field sites
> and z values which are really what I am interested in analysing with
Look into the 'Tps' (thin plate splines) package.
Spotfire, TIBCO Software
> This has posed a problem with many of the
> spline functions in
> R. Even if i input my coordinate data as a matrix as my 'x'
> value and my
> site data as my 'y' values i get the following error:
> Error in xy.coords(x, y) : 'x' and 'y' lengths differ
> I have made sure that there are the same amount of values and
> that they are
> all of the same type, i.e. numeric but with little luck and i
> am a bit lost
> as to what to try next. Does anyone have any suggestions?
> View this message in context:
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help