Skip to contents

Adds up the contributions of each type over the years, in the fixed order of their colours, from type_colors(); the types without any are left out.

Usage

type_data(types)

Arguments

types

The contributions by type: the contribution_types table of the history.

Value

A data frame of label and value.

Examples

rghcard:::type_data(example_stats()$contribution_types)
#>           label value
#> 1       Commits  2479
#> 2 Pull requests   654
#> 3        Issues   474
#> 4       Reviews   356
#> 5     New repos    14
#> 6       Private   155