View source: R/scale_fill_tate_d.R
| scale_fill_tate_d | R Documentation |
A function to use colour palettes from tate with ggplot2. Use
scale_colour_met_d and scale_fill_met_d for
discrete scales, and scale_colour_met_c and
scale_fill_met_c for continuous scales.
scale_fill_tate_d(name, direction = 1, ...)
name |
|
direction |
|
... |
Other arguments passed on to
|
# Load libraries
library(ggplot2)
library(palmerpenguins)
# Plot data
ggplot(data = penguins,
aes(x = bill_length_mm, y = bill_depth_mm, fill = species)) +
geom_point(colour = "black", pch = 21) +
scale_fill_tate_d("Waterhouse", direction = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.