[R] Plotting two qqnorm plots:
Greg Hirson
ghirson at ucdavis.edu
Wed Sep 9 00:57:30 CEST 2009
You can do this in lattice:
library(lattice)
df = data.frame(val = rnorm(100), group = rep(c('x', 'y'), each = 50))
qqmath(~val, groups = group, data = df)
Hope that helps,
Greg
njhuang86 wrote:
> Hi all,
>
> Does anyone know how to plot overlapping qqnorm plots on the same window?
> Suppose I have data in the vector x and y:
>
> qqnorm(x)
> lines(qqnorm(y))
>
> I though these two lines will do the job... However, lines doesn't seem to
> work. Anyways, thanks in advance!
>
--
Greg Hirson
ghirson at ucdavis.edu
Graduate Student
Agricultural and Environmental Chemistry
1106 Robert Mondavi Institute North
One Shields Avenue
Davis, CA 95616
More information about the R-help
mailing list