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.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of tooblue > Sent: Monday, November 01, 2010 12:19 AM > To: r-help@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@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. ______________________________________________ R-help@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.