Learn R Programming

Rdune (version 1.1.1)

scale_fill_dune_d: Dune palettes for plotting with 'ggplot2'

Description

Dune palettes for plotting with 'ggplot2'

Usage

scale_fill_dune_d(name, ...)

Value

An object defining a discrete fill scale for use with 'ggplot2'.

Arguments

name

Name of palette. Run names(dune_palettes) to view options

...

Other arguments passed on to discrete_scale

Examples

Run this code
library(ggplot2)
ggplot(data = mtcars, aes(x = mpg, y = disp, fill = factor(cyl))) +
  geom_point() +
  scale_fill_dune_d("harkonnen4")

Run the code above in your browser using DataLab