plot_theme: Function for designing a beautiful theme for ggplot2

Description Usage Arguments Details

View source: R/plot-theme.R

Description

Function for designing a beautiful theme for ggplot2

Usage

1
2
3
plot_theme(legend.position = "bottom", base.size = 10,
  plot.margin = c(0.7, 1.2, 0.5, 0.5), color.theme = "white",
  aspect.ratio = 1.61)

Arguments

legend.position

character string specifying the legend position (see details)

base.size

integer. Sets base font size (see details)

plot.margin

numeric vector. Length should be four (see details)

color.theme

character string specifying the (pre-defined) color theme - either "white" or "grey"

Details

The ggplot2 package comes with four options for setting the legend position - "left", "right", "bottom" and "top".


pgarnry/ggplotHelper documentation built on May 25, 2019, 2:54 a.m.