Learn R Programming

lehuynh (version 0.1.1)

lehuynh_theme: Le-Huynh's ggplot2 theme

Description

Le-Huynh's ggplot2 theme: white background, black axis, black text

Usage

lehuynh_theme(base_size = 11, base_family = "", ...)

Value

An object as returned by ggplot2::theme()

Arguments

base_size

Base font size

base_family

Base font family

...

Passed to ggplot2::theme()

See Also

Examples

Run this code

library(ggplot2)

fig <- ggplot(mtcars, aes(y = mpg, x = disp)) +
    geom_point(aes(colour = factor(cyl)))

fig

fig + lehuynh_theme()

Run the code above in your browser using DataLab