get_github_chart: Chart GitHub User Activity

Usage Arguments Details Value Examples

Usage

1
get_github_chart(user, addCommits = TRUE, showPlot = TRUE)

Arguments

user

GitHub user (handle)

addCommits

logical. Should the number of commits be overlayed?

showPlot

logical. Should the plot be displayed? Otherwise ggplot2 object is just returned.

Details

As per the API https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile/, returns a data.frame of columns containing data obtained from the requested user's contributions chart, typically found at https://github.com/users/<USER>/contributions.

This function utilises both theme_github and scale_fill_social and is subject to updates to those functions.

Value

a list containing the ggplot object and data object:

list(plot = <ggplot2 object>, data = <data.frame>)

Examples

1
2
3
4
5
## Not run: 
library(butteRfly)
get_github_chart("jonocarroll") # Jonathan Carroll
get_github_chart("hadley")      # Hadley Wickham
## End(Not run)

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