Description Usage Arguments Value Examples
Fill scale for Taylor Swift colors
1 2 3 4 5 6 | scale_fill_taylor(
palette = "taylor1989",
discrete = TRUE,
reverse = FALSE,
...
)
|
palette |
Character name of palette in swift_palettes |
discrete |
Boolean if color aesthetic is discrete |
reverse |
Boolean if palette should be reversed |
... |
Additional arguments used to discrete_scale() or scale_fill_gradientn() to automatically interpolate between colours. |
No return value. Called for side effects
1 2 3 | library(ggplot2)
data <- data.frame(c = LETTERS[1:3],x = c(1,5,7),y = c(5,9,13))
ggplot(data, aes(x,fill=c))+geom_bar()+scale_fill_taylor()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.