Hello,
Try, if your data.frame is named 'animal',
boxplot(weight ~ breed, data = animal)
Hope this helps,
Rui Barradas
Em 15-03-2015 03:50, Lyle Warren escreveu:
I have data with columns for animal ID, breed, and weight.
I'd like to create a box plot of weight, separated by breed (there are 4
breeds).
Any ideas?
Here's a sample of the data (there are 100 rows):
id weight breed
1 453 brahman
2 527 brahman
3 520 brahman
4 460 brahman
5 496 brahman
6 461 brahman
7 519 brahman
8 472 brahman
9 531 brahman
10 473 brahman
11 509 brahman
12 503 brahman
Thanks for your help!
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.