[R] Boxplot across levels of a factor
Paul Boutros
Paul.Boutros at utoronto.ca
Tue Aug 24 08:12:25 CEST 2004
Hello,
I have a data-frame in which one-column is a factor:
> str(data);
`data.frame': 194 obs. of 8 variables:
$ Type : Factor w/ 3 levels "Nuclear-Rec..",..: 1 2 2 2 2 2 2 2 2 2
...
$ Locus : num 0.000571 0.004000 0.001429 0.004857 0.007429 ...
And I'd like to make a boxplot of the data$Locus values, where each level of
the factor gets its own box-and-whiskers plot. I'm weak in R, but I thought
there might be some shortcut to automating this instead of just creating a
new data-structure with all the separate values?
Any suggestions much appreciated!
Paul
More information about the R-help
mailing list