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).
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. >
Hi, I have two problems in R. 1. I need 10 cdfs on a graph, the graph needs to have legend. Can you let me know how to get legend on the graph? 2. In ecdf plot, I need to know the x and y co-ordinates. I have to get corresponding y coordinate values to x coordinate value so that I could be able to know the particular percentile value to the x-coordinate value. Can you let me know how could I be able the corresponding values of x to the y coordinates? Thanking you, Looking forward to your kind response, Sincerely, Ajay. -- Ajay Singh Research Scientist, SOM, IIT-Bombay, Powai, MUMBAI-400076, MH (INDIA).
See help(legend) and help(identify). Ajay Singh wrote:> Hi, > > I have two problems in R. > > 1. I need 10 cdfs on a graph, the graph needs to have legend. Can you let > me know how to get legend on the graph? > > 2. In ecdf plot, I need to know the x and y co-ordinates. I have to get > corresponding y coordinate values to x coordinate value so that I could be > able to know the particular percentile value to the x-coordinate value. > Can you let me know how could I be able the corresponding values of x to > the y coordinates? > > Thanking you, > Looking forward to your kind response, > Sincerely, > Ajay.