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

Thierry Onkelinx thierry.onkelinx at inbo.be
Sun Mar 15 09:18:17 CET 2015


Have a look at http://docs.ggplot2.org/current/geom_boxplot.html

You will find several examples there.

Best regards
Op 15-mrt.-2015 04:59 schreef "Lyle Warren" <lyle00 op gmail.com>:

> >
> >
> > 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 op 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list