Animal nutrition

Repeated-measures plot example: chick weights

Repeated-measures plot of 20 chicks weighed on days 0, 10 and 21, with a line per chick. Chicks without later weights are listed, not dropped.

Open this example in the editorStart from scratch

0100200300400Weight (g)Day 0Day 10Day 21
Weight (g) of 20 Diet 1 chicks on days 0, 10 and 21; lines join each chick’s weights in adjacent days.

About this example

R’s datasets::ChickWeight follows chicks fed four diets from hatching to day 21 (Crowder and Hand 1990). This example keeps Diet 1 and three weighing days in a long table: one row per chick and day, with Day as the condition, the weight as the value and Animal as the subject.

Four chicks have no weight on a later day: chicks 8, 15 and 16 lack day 21, and chick 18 lacks days 10 and 21. Their rows simply are not in the table. Pairing lists all four as incomplete; their remaining points are drawn, and no line is drawn across a missing day.

The difference table uses only chicks weighed on both days of each step: 19 chicks from day 0 to 10 (mean gain 51.5 g) and 16 from day 10 to 21 (mean gain 80.5 g). Reporting those n values with the figure makes the attrition visible to readers. Newly hatched chicks weigh within a few grams of each other, so at 85 mm wide their day 0 points overlap and the editor says so; a wider figure separates them.

Sources: R datasets::ChickWeight — Crowder & Hand (1990)

The data

DayWeight (g)Animal
Day 0421
Day 0402
Day 0433
Day 0424
Day 0415
Day 0416
Day 0417
Day 0428
Day 0429
Day 04110
Day 04311
Day 04112
Day 04113
Day 04114
Day 04115

…and 40 more rows. Open the example to see all of them.

These are individual observations, not supplied group summaries. The editor reports its interpretation and preserves your selected presentation when loading an example. Open the example, replace the data with your own, and export the figure as SVG, PDF, PNG or TIFF.

More examples