Re: [R] Howto Smooth a Curve Created with the Point Function

2008-08-04 Thread Ling, Gary (Electronic Trading)
Hi Gundala, You have to reorder the points, like below: #(your code ...) g <- cbind(x,g.pdf)[order(x),] points(x=[,1],y=g[,2],type='l',col="red") Cheers, gary -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gundala Viswanath Sent: Monday, August 04, 2008

Re: [R] Howto Smooth a Curve Created with the Point Function

2008-08-04 Thread Duncan Murdoch
Gundala Viswanath wrote: Hi all, I have this figure: http://docs.google.com/Doc?id=df5zfsj4_103rjt2v4d5 created with the following steps: x [1] 90.4 57.8 77.0 103.7 55.4 217.5 68.1 85.3 152.0 113.0 97.1 89.9 [13] 68.1 83.7 77.4 34.5 104.9 170.3 88.6 88.1 108.8 77.