[R] plot
Pallier Christophe
pallier at cogito.lscp.ehess.fr
Sat Jan 1 20:32:35 CET 2005
On Sat, 1 Jan 2005, franci wrote:
> Is it possible to make multiple plots i.e. to represent more than one
> function on the same figure?
It you want to superimpose the curves, for example:
t=seq(-5,5,.1)
plot(t,exp(-t*t),type='l')
lines(t,sin(t)*sin(t))
If you want to plot on separate plotting areas:
par(mfcol=c(1,2))
plot(t,exp(-t*t),type='l')
plot(t,sin(t)*sin(t),type='l')
Christophe Pallier
More information about the R-help
mailing list