Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scales-colour.qmd #393

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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