hrbrthemes: hrbrthemes Markdown Themes

Description Usage Arguments Value See Also Examples

Description

{hrbrthemes} themes supporting markdown syntax

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

...

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

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_ipsum("sans")

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