x<-c(1:6)
y<-c(.01,.09,.08,.03,.001,.02)
plot(x,y, type='l')

Please try ?plot before asking to the list.
Ciao!
                mario

On 10-Jun-10 12:11, suman dhara wrote:
Sir,
I have a problem regarding drawing curve.I pose the problem as follows:

suppose I have two vectors:
x<-c(1:6)
y<-c(.01,.09,.08,.03,.001,.02)
plot(x,y)

It gives me the plotted points.But I want to draw a smooth curve passing
througt these points.
How can I do this?


Thanks&  Regards,
Suman Dhara

        [[alternative HTML version deleted]]

______________________________________________
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.

--
Ing. Mario Valle
Data Analysis and Visualization Group | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82

______________________________________________
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.

Reply via email to