Builds a ggplot_flower() and optionally wraps it as an
interactive ggiraph::girafe for HTML output. Pass
interactive = FALSE for pdf/docx.
Usage
plot_flower(
data,
fld_category,
fld_height,
fld_width,
tooltip_expr = NULL,
score = NULL,
title = NULL,
interactive = TRUE
)Arguments
- data
a tibble with one row per component
- fld_category
bare column name for the category (fill)
- fld_height
bare column name for the bar height (score)
- fld_width
bare column name for the bar width
- tooltip_expr
optional glue string for tooltip text
- score
optional pre-computed weighted-mean score for the center
- title
optional plot title
- interactive
logical; if TRUE (default) return a girafe htmlwidget, otherwise return the plain ggplot