scale_color_fishpals | R Documentation |
Fishpals scale functions for use in ggplot2 plots
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, ...)
palette |
Choose from |
discrete |
if FALSE, continuous color palette will be generated |
reverse |
if TRUE, the direction of the colors is reversed |
... |
arguments passed on to |
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.