scale_fill_techno | R Documentation |
Makes a discrete fill scale of length n
from the chosen technocolour palette.
scale_fill_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 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.