Skip to contents

Functions to use ggplot2 scales with Benvi colors.

Usage

scale_colour_benvi_d(pal_name, direction = 1, ...)

scale_color_benvi_d(pal_name, direction = 1, ...)

scale_fill_benvi_d(pal_name, direction = 1, ...)

Arguments

pal_name

Name of the palette.

direction

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

...

additional arguments to pass to discrete_scale

Examples


if (require('ggplot2')) {

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