On Wed, Jun 14, 2006 at 07:23:53PM +0200, Ahmed Elhabti wrote: [...] > Hi, > I want to know how I can have with R two graphs in only one graph? > Example > > x<-seq(0,4,0.1) > plot(x,dnorm(x),type="l") > plot(x,dgamma(x,2,0.5),typ="p")
in the last line, use 'points' instead of 'plot': x<-seq(0,4,0.1) plot(x,dnorm(x),type="l") points(x,dgamma(x,2,0.5),type="p") Gabor > Thanks [...] -- Csardi Gabor <[EMAIL PROTECTED]> MTA RMKI, ELTE TTK ______________________________________________ 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