View source: R/act_scale_color.R
act_scale_color | R Documentation |
Colors ggplots with palettes based on pre-fab palettes included in this package, at no extra cost!
act_scale_color(palette = "ncezid", discrete = TRUE, reverse = FALSE, ...)
palette |
name of pre-fab palette on which to base output (in quotes) |
reverse |
boolean variable defaulting to FALSE. Set to TRUE if want to reverse |
... |
arguments passed to discrete_scale or scale_fill_gradientn, which do the work under the hood. |
A ggplot with colors that ROCK (or that are sort of boring, depending on the pre-fab palette chosen).
data("iris")
library(tidyverse)
ggplot(iris)+
geom_point(aes(x = Sepal.Width, y = Petal.Length, color = Species))+
act_scale_color("hello_nasty")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.