ggplot2-scales-discrete: Discrete scales to use for ggplot2

Description Usage Arguments Details Examples

Description

These functions provide the option to use ghibli colours inside discrete palettes with the 'ggplot2' package.

Usage

1
2
3
4
5
scale_colour_ghibli_d(name, direction = 1, ...)

scale_color_ghibli_d(name, direction = 1, ...)

scale_fill_ghibli_d(name, direction = 1, ...)

Arguments

name

Name of desired palette.

direction

Either '1' or '-1'. If '-1' the palette will be reversed.

...

additional arguments to pass to discrete_scale

Details

Available palettes are found in ghibli_palettes.

Examples

1
2
3
4
5
6
if (require('ggplot2')) {

  ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species)) +
    geom_point() +
    scale_colour_ghibli_d("PonyoMedium")
}

ewenme/ghibli documentation built on Aug. 17, 2020, 7:50 p.m.