View source: R/scale_colour_tate_d.R
| scale_colour_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_colour_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, colour = species)) +
geom_point() +
scale_colour_tate_d("Millais", direction = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.