Plant science · R dataset

Box plot example: plant growth

Compare PlantGrowth dried weights across a control and two treatments. Inspect type-7 quartiles, observed 1.5-IQR whiskers and all thirty observations.

Open this example in the editorStart from scratch

34567Controln=10Treatment 1n=10Treatment 2n=10GroupDried weight (g)
R datasets::PlantGrowth, Dobson (1983): ten plants per group, dried weight in grams.

About this example

The established PlantGrowth dataset contains dried plant weights for a control and two treatment conditions, with ten plants in each group. The source is the R datasets package, reproduced here with the same values used by Scientific Plot Maker.

Boxes use type-7 quartiles rather than the small-sample hinges used by default R boxplot.stats. Whiskers end at observed values inside inclusive 1.5-IQR fences. Displaying these groups does not perform an inferential comparison.

Sources: R datasets::PlantGrowth — dataset and original reference

The data

ControlTreatment 1Treatment 2
4.174.816.31
5.584.175.12
5.184.415.54
6.113.595.50
4.505.875.37
4.613.835.29
5.176.034.92
4.534.896.15
5.334.325.80
5.144.695.26

Source: R datasets::PlantGrowth (Dobson, 1983), linked above. The editor uses type-7 quartiles and observed 1.5-IQR whiskers. Open the example, replace the data with your own, and export the figure as SVG, PDF, PNG or TIFF.

More examples