scale_fill_retinal: retinal fill scale for ggplot2

Description Usage Arguments Examples

View source: R/scales.R

Description

retinal fill scale for ggplot2

Usage

1
2
3
4
5
6
7
scale_fill_retinal(
  palette = "aurora",
  discrete = TRUE,
  alpha = 1,
  reverse = FALSE,
  ...
)

Arguments

palette

Choose from 'retinal_palettes' list

discrete

whether to use a discrete colour palette

alpha

pass through parameter to viridis

reverse

If TRUE, the direction of the colours is reversed.

...

additional arguments to pass to scale_color_gradientn

Examples

1
2
3
4
5
6
library(ggplot2)
library(retinal)

ggplot(diamonds) +
  geom_bar(aes(x = cut, fill = clarity)) +
  scale_fill_retinal("victory_bonds")

barthelmes/jenshelper documentation built on June 15, 2020, 4:09 p.m.