make_achv_shape: Generate colored circle as an svg

View source: R/make_achv_shape.R

make_achv_shapeR Documentation

Generate colored circle as an svg

Description

Description Function to create and color achievement circles. The circles are placed next to the most recent achievement level in the main MDB table.

Usage

make_achv_shape(x)

Arguments

x

color hex code created by adorn_achievement function

Details

Returns a html formatting circle that can be embedded in gt object

Value

return gt html() code for an svg

See Also

Other MDB helper functions: calc_growth(), format_indicator(), label_aggregation(), make_chg_shape()

Examples

## Not run: 
 achv_circle(glitr::scooter) %>% htmltools::html_print()
 df %>% mutate(achv_color = achv_circle(achv_color)) 
## End(Not run)

USAID-OHA-SI/selfdestructin5 documentation built on Feb. 23, 2025, 5:08 a.m.