Skip to content

Helper function(s) for ggplot2. [Only theme_sleek() for now.]

Notifications You must be signed in to change notification settings

seananderson/ggsidekick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ggsidekick

Contains a simple theme for ggplot2, theme_sleek(), that loosely resembles nicely themed plots (to my taste) from R base graphics. The theme builds on ggplot2::theme_light(). I may add more ggplot helper functions in the future.

Installing:

# install.packages("devtools")
devtools::install_github("seananderson/ggsidekick")

Exciting demo with dataset showing the number of breaks in yarn during weaving for 2 yarn types and 3 tension levels:

library(ggsidekick)
library(ggplot2)
ggplot(warpbreaks, aes(tension, breaks)) + 
  geom_violin(fill = "grey90", col = NA) +
  geom_jitter(width = 0.1, height = 0, alpha = 0.7) +
  facet_wrap(~wool) + labs(x = "Tension", y = "Breaks") +
  theme_sleek() # ggsidekick magic happens here

About

Helper function(s) for ggplot2. [Only theme_sleek() for now.]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published