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.:
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
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:
3 matches
Mail list logo