[R] connecting points into a smooth curve

Greg Snow Greg.Snow at imail.org
Tue Nov 2 22:30:25 CET 2010


In addition to the other responses you have received, the xspline function may also be of use.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of tooblue
> Sent: Monday, November 01, 2010 12:19 AM
> To: r-help at r-project.org
> Subject: [R] connecting points into a smooth curve
> 
> 
> If I have, say, five scatter points and want to connect them together
> into a
> smooth curve.
> I did plot(x,y,type="l"), but the graph is five segments connecting
> with
> each other, but not a smooth curve.
> I wonder if there is a line type that is a curve. Thanks!
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/connecting-
> points-into-a-smooth-curve-tp3021796p3021796.html
> 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