This package provides four different color palettes consisting of hex codes corresponding to a set number of colors. The nest palette contains 96 colors, the stream palette contains 38 colors, the viridis palette contains 49 colors, and the accessible palette contains 18 colors. Note that colors are repeated after the above numerical limits for each palette are reached.
The first 20 colors contained in each of the four color palettes are displayed below.
By running the following line of code to load in the
nestcolor package, the stream color palette
overrides the default
ggplot2 color palette in subsequent
plots and graphical
The color palette will be applied to any discrete graphical elements (not including continuous color scales or heat maps) that require no more than 20 different colors.
nestcolor color palette loaded is the
stream palette with 20 different colors. If another color
palette is preferred this can be changed through modifying the global
options by running the following snippet of code prior to any graphs,
palette for the
<- color_palette(n, palette)
ggplot2.discrete.colour = pal,
ggplot2.discrete.fill = pal)
In addition to color palette functions, the
package also contains a custom
that can be set in NEST plots.
See package functions for more detail.