knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The default appearance of ggplot2
graphics is unattractive.
Tick marks point outward (away from the data).
Grid lines are provided (are we in jail?).
Borders are black (taking focus away from the data).
The background color is gray, not white.
This package (MKHthemes
) provides
a nice-looking theme for ggplot2
graphs,
solving the problems identified above.
You can install MKHthemes
from GitHub with:
# install devtools if not already installed # install.packages("devtools") devtools::install_github("MatthewHeun/MKHthemes") # To build vignettes locally, use devtools::install_github("MatthewHeun/MKHthemes", build_vignettes = TRUE)
Find more information, including vignettes and function documentation, at https://MatthewHeun.github.io/MKHthemes/.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.