[R] several functions in the same plot

vito muggeo vito.muggeo at giustizia.it
Mon Nov 18 11:37:24 CET 2002


Use can use:

plot(f1,type="l",lty=1)
lines(f2,lty=2)
lines(f3,lty=3)

where f1, f2 and f3 are your functions.
best,
vito



----- Original Message -----
From: "demolombe" <demolomb at ensam.inra.fr>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, November 18, 2002 10:56 AM
Subject: [R] several functions in the same plot


> Hello,
> Is it possible to plot several functions on a same plot?
> example: 3 functions : f(x), g(x), h(x)
> I would like to obtain one graphic with x-axis and y-axis
> and the 3 functions plotted to compare them.
> Vincent
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-
> r-help mailing list -- Read
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list