scale_color_techno | R Documentation |
Makes a discrete colour scale of length n
from the chosen technocolour palette.
scale_color_techno(palette, n, ...)
palette |
The name of the chosen palette. Choices are from: |
n |
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) ggplot(data = iris, aes(x = Petal.Length, y = Petal.Width, col = Species)) + geom_point(size = 3) + scale_color_techno(palette = "bodied", n = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.