[R] why this doesn't work for qqnorm

Benilton Carvalho bcarvalh at jhsph.edu
Fri Jun 29 03:58:57 CEST 2007


qqnorm(table[,1])

is what you want, isn't it?

and other forms would include:

par(ask=TRUE)
results = apply(table, 2, qqnorm)
par(ask=FALSE)

b

On Jun 28, 2007, at 9:50 PM, Jiong Zhang, PhD wrote:

> I want to qqnorm every column in a table.  When I try the first column
> using
>
> qqnorm(table$column1), it worked.
>
> But when I use
>
> qqnorm(table[1]), it tells me "Error in stripchart(x1, ...) : invalid
> plotting method".
>
> What happen?  How can I make a function that qqnorms every column?
>
> thanks a lot.
>
> -jiong



More information about the R-help mailing list