This document explores the Oats dataset — a classic agricultural experiment on oat yield. We will create tables, figures, and a simple model to demonstrate how Quarto integrates code, text, and output in a single file.
For more examples of what Quarto can produce, visit the Quarto Gallery.
Block Variety nitro yield
1 I Victory 0.0 111
2 I Victory 0.2 130
3 I Victory 0.4 157
4 I Victory 0.6 174
5 I Golden Rain 0.0 117
6 I Golden Rain 0.2 114
This dataset comes from a split-plot experiment on oat yield (Yates, 1935). It contains 3 varieties (Golden Rain, Marvellous, Victory), 4 nitrogen levels (0, 0.2, 0.4, 0.6 cwt/acre), and 6 blocks — 72 observations in total.
Inline Code
The dataset contains 72 observations. The overall mean yield was 104 bushels/acre, ranging from 53 to 174.
Visualization
Base R
boxplot(yield ~ nitro, data = Oats,xlab ="Nitrogen (cwt/acre)", ylab ="Yield (bu/acre)",main ="Oat Yield by Nitrogen Level",col =c("#E8B4B8", "#B8D4E3", "#93C5B8", "#F5D6A8"))
Figure 1: Oat yield by nitrogen application rate (base R)