scale_color_continuous: Apply the Brattle palette to ggplot figures

Description Usage Arguments Author(s) See Also Examples

View source: R/scale_colour_continuous.R

Description

These functions override the standard ggplot versions to apply the viridis palette to ggplot figures.

Usage

1
2
3
4
5
6

Arguments

...

Arguments passed to corresponding viridis function (see below)

Author(s)

Charlie Gibbons

See Also

scale_color_viridis, scale_fill_viridis from the viridis package

Examples

1
2
3
4
qplot(carat, price, data = diamonds, color = price) + scale_color_continuous("Price")

### Revert to ggplot version
qplot(carat, price, data = diamonds, color = price) + ggplot2::scale_color_continuous("Price")

Brattle/BrattleExtras documentation built on Oct. 17, 2018, 8:58 a.m.