R: ggplot color themes based on the Solarized palette

theme_solarized {ggthemes} | R Documentation

## ggplot color themes 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)

    theme_solarized_2(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. There are two variations: `theme_solarized` is similar to to `theme_bw`, while `theme_solarized_2` is similar to `theme_gray`.

### Examples

    library("ggplot2")
    p <- ggplot(mtcars) +
         geom_point(aes(x = wt, y = mpg, colour=factor(gear))) +
         facet_wrap(~am)
    p + theme_solarized() + scale_colour_solarized('blue')

    ## Dark version
    p + theme_solarized(light = FALSE) +
        scale_colour_solarized('blue')

[Package ggthemes version 3.4.2 Index]