remove_padding: Remove plot area padding

View source: R/remove.R

remove_paddingR Documentation

Remove plot area padding

Description

Remove plot area padding

Usage

remove_padding(plot, force_continuous = FALSE)

Arguments

plot

A tidyplot generated with the function tidyplot().

force_continuous

Whether to force the axis to be continuous. Defaults to FALSE.

Value

A tidyplot object.

Examples

# Before removing
animals |>
  tidyplot(x = weight, y = speed, color = family) |>
  add_data_points()

# After removing
animals |>
  tidyplot(x = weight, y = speed, color = family) |>
  add_data_points() |>
  remove_padding()


tidyplots documentation built on April 3, 2025, 9:33 p.m.