remove_padding {tidyplots} | R Documentation |
Remove plot area padding
remove_padding(plot, force_continuous = FALSE)
plot |
A |
force_continuous |
Whether to force the axis to be continuous. Defaults to |
A tidyplot
object.
# 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()