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 scales-colour.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ base_08
```

Each plot makes sense on its own, but visual comparison between the two is difficult.
The axis limits are different, and because only regular, premium and diesel fuels are represented in the 1998 data the colours are mapped inconsistently.
The axis limits are different, and because only regular, premium and diesel fuels are represented in the 1999 data the colours are mapped inconsistently.
To ensure a consistent mapping for the colour aesthetic, we can use `lims()` to manually set the limits.
As discussed in @sec-position-continuous-limits it takes name-value pairs as input, where the name specifies the aesthetic and the value specifies the limits:

Expand Down