search for: exampleth

Displaying 1 result from an estimated 1 matches for "exampleth".

Did you mean: example&h
2009 Nov 06
3
order of points in spline
...f the points themselves, but orders them by x. For instance, I have: x <- c(262, 275, 264, 250, 247, 242, 238, 233) y <- c(422, 389, 359, 308, 269, 229, 191, 176) plot(x, y, xlim=c(0, 500), ylim=c(0,500)) s <- spline(x,y) points(s, type="l", lwd=2) As you can see from the above examplethe spline is fitted not using the points in the order that was passed, but ordering them by x. Is there a way to prevent this? I also tried loess and other packages that fit curves to points but didn't have any luck either thanks nico -- View this message in context: http://old.nabble.com/orde...