Learn R Programming

mdthemes (version 0.1.0)

md_theme_ft_rc: hrbrthemes Markdown Themes

Description

{hrbrthemes} themes supporting markdown syntax

Usage

md_theme_ft_rc(...)

md_theme_ipsum(...)

md_theme_ipsum_ps(...)

md_theme_ipsum_rc(...)

md_theme_ipsum_tw(...)

md_theme_modern_rc(...)

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

Run this code
# NOT RUN {
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")

# }

Run the code above in your browser using DataLab