Skip to content

JanaJarecki/themejj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

themejj

ggplot2 theme for publication-ready graphics

Requirements

Installation of R and the font "Roboto Condensed", which you get here https://fonts.google.com/specimen/Roboto+Condensed

Installation

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)

How plots look like

Boxplot Lineplot Densityplot
Scatterplot

Usage

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")

More Info

See the Wiki.

Author

Jana B. Jarecki

About

theme for ggplot2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages