rremove {ggpubr} | R Documentation |
Remove a ggplot Component
Description
Remove a specific component from a ggplot.
Usage
rremove(object)
Arguments
object |
character string specifying the plot components. Allowed values include:
|
Examples
# 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")
[Package ggpubr version 0.6.0 Index]