theme_mdsr | R Documentation |
Graphical themes used in MDSR book
theme_mdsr(base_size = 12, base_family = "Bookman")
base_size |
base font size, given in pts. |
base_family |
base font family |
if (require(ggplot2)) {
p <- ggplot(mtcars, aes(x = hp, y = mpg, color = factor(cyl))) +
geom_point() + facet_wrap(~ am) + geom_smooth()
p + theme_grey()
p + theme_mdsr()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.