14.4 Figures

Figure 14.1: A figure caption.
` ``{r diamond-colored, fig.cap = 'A figure caption.'}
ggplot(diamonds, aes(x = carat, y = price, color = color)) +
geom_point()
` ``
You can reference Figure 14.1 by the chunk name with \@ref(fig:diamond-colored)