View source: R/use_custom_theme.R
use_custom_theme | R Documentation |
Set a Custom ggplot2 Theme
use_custom_theme(
palette = "main",
theme = "personal",
accent_color,
font = "Roboto",
reverse = FALSE
)
use_personal_theme(
palette = "main",
theme = "personal",
accent_color,
font = "Roboto",
reverse = FALSE
)
use_pomo_theme(
palette = "main",
theme = "pomological",
accent_color,
font = "Roboto",
reverse = FALSE
)
use_pedscience_theme(
palette = "main",
theme = "pedscience",
accent_color,
font = "Roboto",
reverse = FALSE
)
use_palli_theme(
palette = "main",
theme = "palli",
accent_color,
font = "Roboto",
reverse = FALSE
)
use_dksz_theme(
palette = "main",
theme = "dksz",
accent_color,
font = "Roboto",
reverse = FALSE
)
palette |
A palette in
|
theme |
Which theme to pick the palette from. Can be one of
|
accent_color |
The accent color. Can be a string for a HEX value. The
default is the palettes accent color in |
font |
String, a Google Font. Default is |
reverse |
Logical. Should the palette be reversed? |
Nothing, called for side effects
library(ggplot2)
use_custom_theme(palette = "full")
example_plot <- mpg %>%
ggplot(aes(displ, hwy, color = as.factor(cyl))) +
geom_point()
example_plot
use_personal_theme()
example_plot
use_pedscience_theme()
example_plot
use_palli_theme()
example_plot
use_dksz_theme()
example_plot
# Reset the theme with
use_base_theme()
example_plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.