Re: [R] smoothing plot(x, type ='l')

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Thu 08 Jun 2006 - 11:23:26 EST

Federico Calboli wrote:
> Hi All,
>
> I am using plot(x, type = 'l') for some plotting, but I would like rounded edges
> rather than jagged edges in the plot (purely for aestetic reasons).
>
> How could I achieve that?
>
Perhaps you want something like:
x<-rnorm(50)
plot(spline(1:50,x),type="l")

Jim



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 07 21:23:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 08 Jun 2006 - 00:10:26 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.