View source: R/use_custom_theme.R
use_carto_theme | R Documentation |
https://carto.com/carto-colors/
use_carto_theme(
qualitative_scale = "Vivid",
sequential_scale = "Mint",
qualitative_accent = TRUE,
font = "Roboto",
reverse = FALSE
)
qualitative_scale |
String, one of
|
sequential_scale |
String, for sequential scale one of
|
qualitative_accent |
Logiocal, should the accent color come from the qualitative scale? |
font |
String, a font family from Google Fonts |
reverse |
Logical, should color scale be reversed? |
Nothing, called for side effects only
library(ggplot2)
use_carto_theme()
palmer_penguins |>
ggplot(aes(bill_length_mm, flipper_length_mm, color = species)) +
geom_point()
palmer_penguins |>
ggplot(aes(bill_length_mm, flipper_length_mm, color = body_mass_g)) +
geom_point()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.