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
| Day | Weight (g) | Animal |
|---|---|---|
| Day 0 | 42 | 1 |
| Day 0 | 40 | 2 |
| Day 0 | 43 | 3 |
| Day 0 | 42 | 4 |
| Day 0 | 41 | 5 |
| Day 0 | 41 | 6 |
| Day 0 | 41 | 7 |
| Day 0 | 42 | 8 |
| Day 0 | 42 | 9 |
| Day 0 | 41 | 10 |
| Day 0 | 43 | 11 |
| Day 0 | 41 | 12 |
| Day 0 | 41 | 13 |
| Day 0 | 41 | 14 |
| Day 0 | 41 | 15 |
…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.