View source: R/customfunctions.R
Dark theme built off of theme_void.
1 |
1 2 3 4 5 6 7 8 9 10 11 | mtcars %>% ggplot(aes(x = hp, y = mpg, color = as.factor(cyl))) +
geom_line(size = 1.5, alpha = 0.5) +
scale_color_alex() +
theme_alex() +
xlab("Horsepower") +
ylab("Miles per Gallon") +
labs(
title = "Miles per Gallon vs Horsepower"
)
Will format the plot with a customized theme.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.