spiral_git_commits: Visualize git commits

View source: R/example.R

spiral_git_commitsR Documentation

Visualize git commits

Description

Visualize git commits

Usage

spiral_git_commits(
  repo = ".",
  show_legend = TRUE,
  start = NULL,
  end = Sys.Date(),
  pt_range = c(2, 16),
  commits_range = c(1, ceiling(quantile(n[n > 0], 0.95))),
  type = c("points", "heatmap"),
  colors = c("#3288BD", "#99D594", "#E6F598", "#FFFFBF", "#FEE08B", "#FC8D59", "#D53E4F")
)

Arguments

repo

Path of the git repo. The value can be a single repo or a vector of repos.

show_legend

Whether to show the legend.

start

Start date. By default it is the first date of the commit. The value can be a string such as "2022-01-01" or a base::Date object.

end

End date. By default it is the current date. The value can be a string such as "2022-01-01" or a base::Date object.

pt_range

Range of the point sizes. The default is between 1 and the 90 percentile of daily commits.

commits_range

Range of the numbers of commits.

type

Type of the plot.

colors

If type is the heatmap, it controls the list of colors.

Examples

## Not run: 
spiral_git_commits("~/project/development/ComplexHeatmap")
spiral_git_commits("~/project/development/ComplexHeatmap", type = "heatmap")

## End(Not run)

jokergoo/spiralize documentation built on June 16, 2024, 4:35 a.m.