[R] multiple plots in a graph
Hi, I have to generate 10 cdfs in a graph. I need to compare the cdf's nature by plotting ten cdfs in a graph. Thus, I need multiple plots in a graph. I would appreciate if you could give some solution to the problem asap. Thanking you, Sincerely, Ajay. -- Ajay Singh Research Scientist, SOM, IIT-Bombay, Powai, MUMBAI-400076, MH (INDIA). __ 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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] multiple plots in a graph
Ajay Singh wrote: Hi, I have to generate 10 cdfs in a graph. I need to compare the cdf's nature by plotting ten cdfs in a graph. Thus, I need multiple plots in a graph. I would appreciate if you could give some solution to the problem asap. plot(ecdf(rnorm(10))) plot(ecdf(rnorm(12)), add=TRUE, col.points=red, col.hor=red) etc... Uwe Ligges Thanking you, Sincerely, Ajay. __ 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 and provide commented, minimal, self-contained, reproducible code.
[R] Multiple plots on same graph
R1.7, Win2k: I have some Splus code that has allowed me, in the past, to place multiple plots on the same graph: plot(y1 ~ x1, data = foo1.frame, type = l, xlab=,ylab=, xlim=c(...,...), ylim=c(...,...), axes=F) par(new=T, xaxs = d, yaxs = d) plot(y2 ~ x2, data = foo2.frame, col = 2) However, I get the error message Error in plot.new() : axis style d unimplemented Can anyone recommend a way for me to accomplish the same thing as the code above? If I simply use par(new=T), the produced graph contains elements that do not correspond to the same axis-scales. Thanks in advance, david paul __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help