
Orientate a mode used outside of a gg_* context
Source: R/mode_orientation.R
mode_orientation_to_x.RdAdd theme components to a mode used outside of a gg_* context
mode_orientation_to_x()Orientate the plot to the x axis.mode_orientation_to_y()Orientate the plot to the y axis.
Examples
library(ggplot2)
library(palmerpenguins)
penguins |>
ggplot() +
geom_point(aes(x = flipper_length_mm, y = body_mass_g)) +
light_mode_r() +
mode_orientation_to_x()
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).
penguins |>
ggplot() +
geom_bar(aes(y = island)) +
light_mode_r() +
mode_orientation_to_y()