unit_chart: Good Charts Inspired Unit Chart

Description Usage Arguments Examples

View source: R/unit_chart.R

Description

Good Charts Inspired Unit Chart

Usage

1
2
3
4
5
6
7
unit_chart(
  n,
  out_of,
  color_random_points = FALSE,
  highlight_color = "#E41A1C",
  other_color = "#DFDFDF"
)

Arguments

n

number of items to be colored

out_of

Total number of units

color_random_points

(optional) Highlight random points

highlight_color

(optional) The highlight point color

other_color

(optional) The color for all the other points

Examples

1
2
# Create the basketball chart on page 145
unit_chart(3, 10000, TRUE)

mikeasilva/gcplot2 documentation built on March 30, 2021, 12:55 p.m.