Description Usage Arguments Details Value Examples
View source: R/ggThemeAssist.R
Addin to help style your ggplot2 themes
ggThemeAssist
is a RStudio-Addin that delivers a graphical interface for editing ggplot2 theme elements.
1 |
plot |
A ggplot2 plot object to manipulate its theme. |
To run the addin, either highlight a ggplot2-object in your current script and select ggThemeAssist
from the Addins-menu within RStudio, or run ggThemeAssistGadget(plot)
with a ggplot2 object as the parameter. After editing themes and terminating the addin, a character string containing the desired changes is inserted in your current script.
ggThemeAssist
returns a character vector.
1 2 3 4 5 6 7 | ## Not run:
# example for ggThemeAssist command line usage.
library(ggplot2)
gg <- ggplot(mtcars, aes(x = hp, y = mpg, colour = as.factor(cyl))) + geom_point()
ggThemeAssistGadget(gg)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.