scale_color_techno: Make a ggplot colour scale

View source: R/palettes.R

scale_color_technoR Documentation

Make a ggplot colour scale

Description

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

Usage

scale_color_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 colour in ggplot.

Examples

library(ggplot2)

ggplot(data = iris,
aes(x = Petal.Length, y = Petal.Width, col = Species)) +
geom_point(size = 3) +
scale_color_techno(palette = "bodied", n = 3)


sophiemeakin/technocolour documentation built on Nov. 1, 2022, 1:21 a.m.