Makes a discrete colour scale of length n
from the chosen technocolour palette.
scale_color_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 colour in ggplot.
library(ggplot2)
#> Warning: package ‘ggplot2’ was built under R version 4.1.2
ggplot(data = iris,
aes(x = Petal.Length, y = Petal.Width, col = Species)) +
geom_point(size = 3) +
scale_color_techno(palette = "bodied", n = 3)