theme_behindbars: Theme and colors for behind bars plots

View source: R/theme_behindbars.R

theme_behindbarsR Documentation

Theme and colors for behind bars plots

Description

a set of themes and colors for behind bars plots

Usage

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()

Arguments

base_size

base font size, given in pts

base_family

base font family

base_color

base color for text and axis lines

Examples

## 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)

uclalawcovid19behindbars/behindbarstools documentation built on April 22, 2022, 4:08 a.m.