ggplot2 theme for publication-ready graphics
Installation of R and the font "Roboto Condensed", which you get here https://fonts.google.com/specimen/Roboto+Condensed
library(devtools) #maybe install.packages('devtools')
install_github("janajarecki/themejj", force=TRUE)
# If this throws errors: You need these two packages
# install.packages(showtext)
# install.packages(ggplot2)
library(ggplot2)
library(themejj)
theme_set(themejj())
ggplot(mtcars, aes(mpg, wt)) +
geom_point(size = 2,
fill="#83AEB2",
color="#AEAEB7",
alpha = .6) +
geom_smooth(method = lm, alpha = .2, color = "black") +
labs(title = 'Line Plot', caption = 'Source: mtcars',
subtitle="Miles Per Gallon and Weight")
See the Wiki.
Jana B. Jarecki