[R] Splines under tension

William Dunlap 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
> interpolation.

Look into the 'Tps' (thin plate splines) package.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com  

> 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?
> Thanks, 
> Sam
> -- 
> View this message in context: 
> http://r.789695.n4.nabble.com/Splines-under-tension-tp2173887p
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list