Learn R Programming

mdthemes (version 0.1.0)

md_theme_gray: ggplot2 Markdown Themes

Description

{ggplot2} themes supporting markdown syntax

Usage

md_theme_gray(...)

md_theme_grey(...)

md_theme_bw(...)

md_theme_linedraw(...)

md_theme_light(...)

md_theme_dark(...)

md_theme_minimal(...)

md_theme_classic(...)

Arguments

...

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

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_gray()

# }

Run the code above in your browser using DataLab