ggThemeAssist {ggThemeAssist}R Documentation

RStudio Addins

Description

Addin to help style your ggplot2 themes

ggThemeAssist is a RStudio-Addin that delivers a graphical interface for editing ggplot2 theme elements.

Usage

ggThemeAssistGadget(plot)

Arguments

plot

A ggplot2 plot object to manipulate its theme.

Details

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.

Value

ggThemeAssist returns a character vector.

Examples

## 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)

[Package ggThemeAssist version 0.1.5 Index]