Custom coloring and filling functions based on unique color palettes
Usage
scale_color_starfish_d(palette = "starfish", extend = FALSE, ...)
scale_colour_starfish_d(palette = "starfish", extend = FALSE, ...)
scale_fill_starfish_d(palette = "starfish", extend = FALSE, ...)
scale_color_starfish_op(
palette = "starfish",
val_names = c("good", "neutral", "bad"),
...
)
scale_colour_starfish_op(
palette = "starfish",
val_names = c("good", "neutral", "bad"),
...
)
scale_fill_starfish_op(
palette = "starfish",
val_names = c("good", "neutral", "bad"),
...
)
scale_color_starfish_div(palette = "starfish", ...)
scale_colour_starfish_div(palette = "starfish", ...)
scale_fill_starfish_div(palette = "starfish", ...)
scale_color_starfish_c(palette = "starfish", ...)
scale_colour_starfish_c(palette = "starfish", ...)
scale_fill_starfish_c(palette = "starfish", ...)
Details
Specific functions include:
scale_(color/colour/fill)_starfish_d
: Discrete palette with either fixed or dynamically extended number of shadesscale_(color/colour/fill)_starfish_op
\b : Discrete palette with fixed colors for "good", "bad", and "neutral"scale_(color/colour/fill)_starfish_div
: Continuous diverging color palette, must contain negative, neutral, positive valuesscale_(color/colour/fill)_starfish_c
: Continuous color palette
Examples
library(ggplot2)
library(starfish)
ggplot(diamonds[1:2000,], aes(x = cut, y = carat,
color = cut)) +
geom_point() +
scale_color_starfish_d() +
theme_starfish()