powered by
Plot commits over time
# S3 method for git_repository plot( x, breaks = c("month", "year", "quarter", "week", "day"), main = NULL, ... )
The repository to plot
Default is month. Change to year, quarter, week or day as necessary.
month
Default title for the plot is "Commits on repo:" and repository workdir basename. Supply a new title if you desire one.
Additional arguments affecting the plot
if (FALSE) { ## Initialize repository path <- tempfile(pattern="git2r-") dir.create(path) repo <- clone("https://github.com/ropensci/git2r.git", path) ## Plot commits plot(repo) }
Run the code above in your browser using DataLab