theme_jack: Minimal ggplot2 theme building off of theme_bw()

Description Usage Arguments Examples

View source: R/graphing.R

Description

Minimal ggplot2 theme building off of theme_bw()

Usage

1
2
3
4
5
6
7
8
theme_jack(
  base_size = 11,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22,
  aspect = F,
  ...
)

Arguments

base_size

base font size

aspect

logical specifying whether to change aspect ratio to 9/16 which is useful when using images

...

Other arguments passed to theme_bw

strip_text_size, strip_text_margin

plot strip text size and margin

subtitle_size, subtitle_margin

plot subtitle size and margin

plot_title_size, plot_title_margin

plot title size and margin

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
library(ggplot2)

ggplot(mtcars, aes(wt, mpg)) +
    geom_point() +
    labs(title = "A Lovely Plot",
         subtitle = "What can the subtitle tell us?") +
    theme_jack()

ggplot(diamonds, aes(carat, price, color = clarity)) +
    geom_point(alpha = 0.7) +
    facet_wrap(~cut) +
    labs(title = "A Lovely Plot",
         subtitle = "What can the subtitle tell us?") +
         theme_jack()


## End(Not run)

JackLich10/jacklich documentation built on Sept. 29, 2021, 1:37 a.m.