
The emwthemes package is designed for personal use.
Acknowledgements
Several functions are based on code from other packages. License information and attributions are included where appropriate.
Installation
You can install the development version of emwthemes from GitHub with:
# install.packages("devtools")
devtools::install_github("emmarshall/emwthemes")Examples
You can find the code for all the examples below in the “Examples” Vignette on the Package Website.
Examples
ggplot(judges, aes(FAMI,RTEN,color=factor(CONT_factor))) +
geom_point(size=3) +
labs(title = "Scatter Plot",
subtitle = "Lawyers' ratings of state judges in the US Superior Court",
#caption = "Source: New Haven Register, 14 January, 1977",
x = "Familiarity with Law",
y = "Worthy of Retention") +
theme_em()

Dark Theme
ggplot(judges, aes(FAMI,RTEN,color=factor(CONT_factor))) +
geom_point(size=3) +
labs(title = "Scatter Plot",
subtitle = "Lawyers' ratings of state judges in the US Superior Court",
#caption = "Source: New Haven Register, 14 January, 1977",
x = "Familiarity with Law",
y = "Worthy of Retention") +
theme_em_dark()
Bar Charts
bar_light +
theme_em()

bar_light +
theme_em_dark()
bar_light +
theme_emw(grid="Y")

bar_light +
theme_emw_dark(grid="Y")

Alternate, more professional option with built in ability to use ggtext::markdown_elements
Using theme_em to print a scatter plot with width = 12 inches & height = 8 inches and the md = TRUE argument to use ggtext::element_markdown() instead of element_text() for text elements, in this case the subtitle:


