rremove | R Documentation |
Remove a specific component from a ggplot.
rremove(object)
object |
character string specifying the plot components. Allowed values include:
|
# Load data data("ToothGrowth") # Basic plot p <- ggboxplot(ToothGrowth, x = "dose", y = "len", ggtheme = theme_gray()) p # Remove all grids p + rremove("grid") # Remove only x grids p + rremove("x.grid")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.