View source: R/ggplot-helper.R
theme_no_axes | R Documentation |
Remove axis elements
theme_no_axes(
axes = "xy",
text = TRUE,
ticks = TRUE,
title = TRUE,
line = FALSE
)
axes |
Which axes elements should be removed? A string containing
one or more of |
text |
If |
ticks |
If |
title |
If |
line |
If |
A theme()
object.
p <- ggplot() +
geom_point(aes(x = wt, y = qsec), data = mtcars)
p + theme_no_axes()
p + theme_no_axes("b")
p + theme_no_axes("l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.