ggplot2-scales-continuous: Continuous scales to use for ggplot2

ggplot2-scales-continuousR Documentation

Continuous scales to use for ggplot2

Description

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

Usage

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

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

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

Arguments

name

Name of desired palette.

direction

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

...

Arguments to pass on to 'ggplot2::scale_colour_gradientn()' or 'ggplot2::scale_fill_gradientn()'

Details

Available palettes are found in ghibli_palettes.

Value

A 'ScaleContinuous' object that can be added to a 'ggplot' object

Examples


if (require('ggplot2')) {

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


ghibli documentation built on Aug. 26, 2022, 5:11 p.m.