db_dark_theme: Clean Dark Theme for ggplot

Description Usage Arguments See Also Examples

View source: R/ggplot_themes.R

Description

Provides a clean, dark theme, aesthetic for ggplot

Usage

1
2
db_dark_theme(base_size = 12, base_family = "Open Sans",
  base_line_size = base_size/22, base_rect_size = base_size/22)

Arguments

base_size

Size of text. Defaults to 11

base_family

Font family. Defaults to Open Sans

base_line_size

Line size

base_rect_size

Size of rectangles

See Also

Other theme: db_light_theme

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(datasets)
data(iris)

ggplot(iris, aes(x=Sepal.Width, y=Sepal.Length, color=Species)) +
  geom_point() +
  labs(title="Sepal Height vs. Sepal Width",
       subtitle='Iris Dataset',
       caption="The iris dataset is well-known and common amongst new R learners.") +
  scale_color_brewer(palette="Spectral") +
  db_dark_theme(base_size = 11, base_family = 'Open Sans') %+replace%
  theme(legend.position = 'right')

Beachnad/dbr documentation built on Nov. 6, 2019, 8:07 p.m.