rm_axis | R Documentation |
Remove an axis from a ggplot
rm_axis(axis, line_too = TRUE)
axis |
The axis to remove ("x" or "y") |
line_too |
Whether to remove the axis line too (i.e. not just the title, ticks and text) |
data <- tibble::tibble(x = 1:3, z = 3:1) ggplot2::ggplot(data, ggplot2::aes(x = x, y = x)) + ggplot2::geom_line() + rm_axis("x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.