View source: R/make_achv_shape.R
make_achv_shape | R Documentation |
Description Function to create and color achievement circles. The circles are placed next to the most recent achievement level in the main MDB table.
make_achv_shape(x)
x |
color hex code created by adorn_achievement function |
Returns a html formatting circle that can be embedded in gt object
return gt html() code for an svg
Other MDB helper functions:
calc_growth()
,
format_indicator()
,
label_aggregation()
,
make_chg_shape()
## Not run:
achv_circle(glitr::scooter) %>% htmltools::html_print()
df %>% mutate(achv_color = achv_circle(achv_color))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.