# 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_minimal_grid()
# }
Run the code above in your browser using DataLab