Re: [R] Plotting two qqnorm plots:

2009-09-08 Thread Rolf Turner
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! E.g.:

Re: [R] Plotting two qqnorm plots:

2009-09-08 Thread Greg Hirson
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

[R] Plotting two qqnorm plots:

2009-09-08 Thread njhuang86
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! -- View this message in context: