scale_fill_WB_d {WrensBookshelf}R Documentation

Use WrensBookshelf with ggplot

Description

Wrapper function to allow easy integration with ggplot2. Sets discrete color scale.

Usage

scale_fill_WB_d(name, direction = 1, override.order = FALSE, ...)

Arguments

name

Name of palette from WrensBookshelf.

direction

Direction you want the palette to proceed; 1 = direction shown in ShowBookshelf() or ShowBook(), -1 = reversed.

override.order

Argument used to override the prescribed order that colors are selected from palettes for discrete palettes where n < length(palette). Default = FALSE.

...

See discrete_scale() for additional params.

Value

No return value, integrates WB_brewer into ggplot2 function.

Examples

ggplot2::ggplot(mtcars, ggplot2::aes(x = disp,y = wt, fill = factor(cyl)))+
ggplot2::geom_point(size = 3, shape = 21)+
scale_fill_WB_d(name = "YouMatter")

[Package WrensBookshelf version 0.1.0 Index]