Description Usage Arguments Examples
Good Charts Inspired Unit Chart
1 2 3 4 5 6 7 | unit_chart(
n,
out_of,
color_random_points = FALSE,
highlight_color = "#E41A1C",
other_color = "#DFDFDF"
)
|
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 |
1 2 | # Create the basketball chart on page 145
unit_chart(3, 10000, TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.