Learn R Programming

ggblanket (version 11.1.0)

mode_orientation_to_x: Orientate a mode used outside of a gg_* context

Description

Add 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.

Usage

mode_orientation_to_x()

mode_orientation_to_y()

Arguments

Value

ggplot2 theme components.

Examples

Run this code
library(ggplot2)
library(palmerpenguins)

penguins |>
  ggplot() +
  geom_point(aes(x = flipper_length_mm, y = body_mass_g)) +
  light_mode_r() +
  mode_orientation_to_x()


penguins |>
  ggplot() +
  geom_bar(aes(y = island)) +
  light_mode_r() +
  mode_orientation_to_y()

Run the code above in your browser using DataLab