[R] How am i able to create Box plots of a factor (weight) separated by other factors (breed)?

Lyle Warren lyle00 at gmail.com
Sun Mar 15 04:50:22 CET 2015


>
>
> 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]]



More information about the R-help mailing list