Examples for 'ggthemes::theme_solarized'


ggplot color themes based on the Solarized palette

Aliases: theme_solarized theme_solarized_2

Keywords:

### ** Examples

library("ggplot2")

p <- ggplot(mtcars) +
     geom_point(aes(x = wt, y = mpg, colour = factor(gear)))

# Light version with different main accent colors
for (accent in names(ggthemes::ggthemes_data[["solarized"]][["accents"]])) {
  print(p + theme_solarized() +
        scale_colour_solarized(accent))
}

# Dark version
p + theme_solarized(light = FALSE) +
    scale_colour_solarized("blue")
plot of chunk example-ggthemes-theme_solarized-1
# Alternative theme
p + theme_solarized_2(light = FALSE) +
  scale_colour_solarized("blue")
plot of chunk example-ggthemes-theme_solarized-1

[Package ggthemes version 4.2.4 Index]