Mario and Luigi Color Scales for ggplot2
Usage
scale_color_luigg(palette = "super_mario", which = NULL, ..., reverse = FALSE)
scale_fill_luigg(palette = "super_mario", which = NULL, ..., reverse = FALSE)
scale_colour_luigg(palette = "super_mario", which = NULL, ..., reverse = FALSE)
Arguments
- palette
palette from
names(luigg)
to use- which
numeric indices of colors to use.
NULL
by default.- ...
arguments passed on to
ggplot2::discrete_scale()
- reverse
Should the vector be reversed? Default is
FALSE
.
Examples
library(ggplot2)
ggplot2::mpg |>
ggplot() +
geom_point(aes(displ, hwy, colour = class)) +
scale_color_luigg(palette = 'warp_pipe')
ggplot2::mpg |>
ggplot() +
geom_point(aes(displ, hwy, fill = class), pch = 23, color = 'transparent') +
scale_fill_luigg(palette = 'warp_pipe')