Skip to contents

Remove plot area padding

Usage

remove_plot_area_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_plot_area_padding()