theme_qsp1: QSP Theme 1

Description Usage Arguments Value Examples

Description

This is a ggplot theme with a white background and light grey gridlines.

Usage

1
theme_qsp1(base_size = 11, base_family = "")

Arguments

base_size

base font size

base_family

base font family

Value

a ggplot theme

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
mtcars2 <-  dplyr::mutate(mtcars,
                      vs = factor(vs, labels = c("V-shaped", "Straight")),
                      am =factor(am, labels = c("Automatic", "Manual")),
                      cyl = factor(cyl),
                      gear = factor(gear))

library(ggplot2)
p1 <- ggplot2::ggplot(mtcars2) +
  geom_point(aes(x = wt, y = mpg, colour = gear)) +
  labs(title = "Fuel economy declines as weight increases",
       subtitle = "(1973-74)",
  caption = "Data from the 1974 Motor Trend US magazine.",
  tag = "Figure 1",
  x = "Weight (1000 lbs)",
  y = "Fuel economy (mpg)",
  colour = "Gears")

p1 + theme_qsp1()

dougtommet/QSPthemes documentation built on Feb. 6, 2020, 12:09 a.m.