Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhodge931 committed Jul 4, 2024
1 parent 6648d73 commit 0c5ffd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vignettes/ggblanket.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,13 @@ penguins2 |>

### 11. Side-effects to the `mode` based on the `mode_orientation`

The `gg_*` function adds helpful side-effects to the mode.
The `gg_*` function adds helpful side-effects to the mode. The intent is to enable users to be able to use one theme, which can then be applied asymmetrically.

Where `mode_orientation = "x"`, the `gg_*` function will remove the y axis line/ticks and the x gridlines from the `mode` (by changing their colour to "transparent"). Where it is `mode_orientation = "y"`, the opposite will occur. If the `gg_*` guesses an incorrect `mode_orientation`, then the user can change this.

For this reason, any `mode` used should be designed to anticipate these side-effects.
Additionally, the `gg_*` function will remove ticks from discrete scales.

Any `mode` used should be designed to anticipate these side-effects.

To avoid these side-effects, instead `+` the theme on to the `gg_*` output (or use the `theme` argument in `set_blanket`).

Expand Down

0 comments on commit 0c5ffd0

Please sign in to comment.