remove_padding | 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.