Re: [R] Need help on having multiple distributions in one graph

2010-05-04 Thread Frank E Harrell Jr
On 05/03/2010 11:14 PM, Jorge Ivan Velez wrote: Hi Joseph, How about this? matplot(cbind(m0, m1, m3, m4), type = 'l', lty = 1) legend('topright', paste('m', c(0, 1, 3, 4), sep = ), lty = 1, col = 1:4) See ?matplot and ?legend for details. HTH, Jorge Also see the labcurve function in the

Re: [R] Need help on having multiple distributions in one graph

2010-05-03 Thread jhilbe
R-listers: I have searched the help files and everything I have related to R graphics. I cannot find how to graph y against several distributions on a single graph. Here is code for creating 4 Poisson distributions with different mean values, although I would prefer having it in a loop: The

Re: [R] Need help on having multiple distributions in one graph

2010-05-03 Thread Jorge Ivan Velez
Hi Joseph, How about this? matplot(cbind(m0, m1, m3, m4), type = 'l', lty = 1) legend('topright', paste('m', c(0, 1, 3, 4), sep = ), lty = 1, col = 1:4) See ?matplot and ?legend for details. HTH, Jorge On Mon, May 3, 2010 at 6:42 PM, wrote: R-listers: I have searched the help files and