ggthemes: ggthemes Markdown Themes

Description Usage Arguments Value See Also Examples

Description

{ggthemes} themes supporting markdown syntax

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

Arguments

...

Arguments passed on to the corresponding theme in package {ggthemes}

Value

An object of class theme that can be added to any ggplot

See Also

as_md_theme()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
library(ggplot2)
data(mtcars)

p <- ggplot(mtcars, aes(hp, mpg)) +
  geom_point() +
  labs(
    title = "A **bold** title",
    subtitle = "An *italics* subtitle",
    caption = "A <span style = 'color:blue'>blue</span> caption"
  )

# With a 'usual' theme the text is not rendered
p

# By adding an 'md' theme the text is rendered properly
p + md_theme_excel_new()

mdthemes documentation built on July 1, 2020, 9:08 p.m.