View source: R/theme_behindbars.R
| theme_behindbars | R Documentation |
a set of themes and colors for behind bars plots
theme_behindbars( base_size = 24, base_family = "Helvetica", base_color = "black" ) theme_map_behindbars(base_size = 24, base_family = "Helvetica") scale_color_bbdiscrete() scale_fill_bbdiscrete() scale_color_bbcontinous() scale_fill_bbcontinous()
base_size |
base font size, given in pts |
base_family |
base font family |
base_color |
base color for text and axis lines |
## Not run:
library(ggplot2)
iris %>%
ggplot(aes(x = Petal.Width, y = Petal.Length, color = Species)) +
geom_point() +
theme_behindbars() +
scale_color_bbdiscrete()
iris %>%
ggplot(aes(x = Petal.Width, fill = Species)) +
geom_density() +
theme_behindbars() +
scale_fill_bbdiscrete()
iris %>%
ggplot(aes(x = Petal.Width, y = Petal.Length, color = Petal.Width)) +
geom_point() +
theme_behindbars() +
scale_color_bbcontinous()
usmap::plot_usmap() +
theme_map_behindbars()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.