Makes a discrete fill scale of length n from the chosen technocolour palette.

scale_fill_techno(palette, n, ...)

Arguments

palette

The name of the chosen palette. Choices are from: "bodied", "esther", "hotbot", "ibrik", "poodle", "rush", "x".

n

The integer length of the desired palette. Default value is the length of the specified palette.

Value

A discrete scale to use for fill in ggplot.

Examples

library(ggplot2)

ggplot(data = iris,
aes(x = Species, y = Petal.Width, fill = Species)) +
geom_violin() +
scale_fill_techno(palette = "hotbot", n = 3)