scale_color_vangogh {vangogh} | R Documentation |
Setup colour palette for ggplot2
Description
Setup colour palette for ggplot2
Usage
scale_color_vangogh(
...,
palette = "StarryNight",
discrete = TRUE,
alpha = 1,
reverse = FALSE
)
scale_colour_vangogh(
...,
palette = "StarryNight",
discrete = TRUE,
alpha = 1,
reverse = FALSE
)
Arguments
... |
additional arguments to pass to scale_color_gradientn |
palette |
Choose from 'vangogh_palettes' list |
discrete |
whether to use a discrete colour palette |
alpha |
transparency |
reverse |
logical, Reverse the order of the colours? |
Value
A scale_color_vangogh function
Examples
library(ggplot2)
ggplot(mtcars, aes(mpg, wt)) +
geom_point(aes(colour = factor(cyl))) +
scale_colour_vangogh(palette = "StarryNight")
ggplot(mtcars, aes(mpg, wt)) +
geom_point(aes(colour = hp)) +
scale_colour_vangogh(palette = "StarryNight", discrete = FALSE)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
scale_colour_vangogh(palette = "StarryRhone")
ggplot(diamonds) +
geom_bar(aes(x = cut, fill = clarity)) +
scale_fill_vangogh()
[Package vangogh version 0.1.1 Index]