The vmodern theme integrates a slight modification of the 'Dark2' color palette from RColorBrewer, the viridis palette, and other custom color palettes.

vmodern_pal(palette = "high_contrast", viridis_option = "plasma")

Arguments

palette

Name of the color palette. Must be one of "high_contrast", "viridis", "bright_contrast", "bright_contrast2", "muted", "muted2".

viridis_option

A character string indicating the color map option to use for viridis. Options are "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), "viridis" (or "D"), "cividis" (or "E"), "rocket" (or "F"), "mako" (or "G"), "turbo" (or "H").

Examples

library(scales)
show_col(vmodern_pal()(8))

show_col(vmodern_pal(palette = "viridis")(8))