scale_color_fishpals: Fishpals scale functions for use in ggplot2 plots

View source: R/scales.R

scale_color_fishpalsR Documentation

Fishpals scale functions for use in ggplot2 plots

Description

Fishpals scale functions for use in ggplot2 plots

Usage

scale_color_fishpals(palette = "cfs", discrete = TRUE, reverse = FALSE, ...)

scale_colour_fishpals(palette = "cfs", discrete = TRUE, reverse = FALSE, ...)

scale_fill_fishpals(palette = "cfs", discrete = TRUE, reverse = FALSE, ...)

Arguments

palette

Choose from fishpals_pals list

discrete

if FALSE, continuous color palette will be generated

reverse

if TRUE, the direction of the colors is reversed

...

arguments passed on to ggplot2::discrete_scale()

Examples

library(ggplot2)
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
 geom_point(size = 4) +
 scale_color_fishpals("genidaqs")
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
geom_bar(stat = "identity") +
scale_fill_fishpals()

fishsciences/fishpals documentation built on July 11, 2022, 12:32 a.m.