Learn R Programming

ggthemes (version 1.3.2)

theme_solarized: ggplot color theme based on the Solarized palette

Description

See http://ethanschoonover.com/solarized for a description of the Solarized palette.

Usage

theme_solarized(base_size = 12, base_family = "",
    light = TRUE)

Arguments

base_size
base font size
base_family
base font family
light
logical. Light or dark theme?

Details

Plots made with this theme integrate seamlessly with the Solarized Beamer color theme. https://github.com/jrnold/beamercolorthemesolarized.

Examples

Run this code
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
(qplot(carat, price, data=dsamp, colour=clarity)
 + theme_solarized()
 + scale_colour_solarized("blue"))
## Dark version
(qplot(carat, price, data=dsamp, colour=clarity)
 + theme_solarized(light=FALSE)
 + scale_colour_solarized("blue"))
## With panels
(qplot(carat, price, data=dsamp) + facet_wrap(~ clarity)
 + theme_solarized()
 + scale_colour_solarized("blue"))

Run the code above in your browser using DataLab