Makes a discrete fill scale of length n
from the chosen technocolour palette.
scale_fill_techno(palette, n, ...)
The name of the chosen palette. Choices are from: "bodied"
, "esther"
, "hotbot"
, "ibrik"
, "poodle"
, "rush"
, "x"
.
The integer length of the desired palette. Default value is the length of the specified palette.
A discrete scale to use for fill in ggplot.
library(ggplot2)
ggplot(data = iris,
aes(x = Species, y = Petal.Width, fill = Species)) +
geom_violin() +
scale_fill_techno(palette = "hotbot", n = 3)