Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layers.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ It may take some time before the best approach is immediately obvious, so if you

Instead of mapping an aesthetic property to a variable, you can set it to a *single* value by specifying it in the layer parameters.
We **map** an aesthetic to a variable (e.g., `aes(colour = cut)`) or **set** it to a constant (e.g., `colour = "red"`).
If you want appearance to be governed by a variable, put the specification inside `aes()`; if you want override the default size or colour, put the value outside of `aes()`.
If you want appearance to be governed by a variable, put the specification inside `aes()`; if you want to override the default size or colour, put the value outside of `aes()`.
\index{Aesthetics!setting}

The following plots are created with similar code, but have rather different outputs.
Expand Down