theme_github: ggplot2 theme based on the GitHub contribution tile chart

Description Usage Details Value Examples

View source: R/theme_github.R

Description

Style a tile chart similar to those on GitHub profiles.

Usage

1

Details

theme_github implements the standard green tile chart as seen on GitHub profiles. Alternatively, uses a different color scheme in the style of another popular site, e.g. twitter, stackoverflow.

Value

An object of class theme.

Examples

1
2
3
4
5
6
library("ggplot2")
## get data
p <- ggplot(commit_data) + geom_tile(aes(x=c.week, y=c.day)) + theme_github()

## Twitter colors
p + theme_github(alt="Twitter")

jonocarroll/githubtools documentation built on May 19, 2019, 7:31 p.m.