stat_boxes_group.Rd
Generate a group of multiple sets of six related stat boxes that summarize the distribution of values from a multiple data frames.
stat_boxes_group(x, clrby, type = "annual", style = "valueBox", rnd = 0, height = "110px", width.icon = "90px", text.size = 75, value.size = 150, output = "boxes", main_title = "<h4>Aggregate period statistics</h4>", clrs.default = list(c("light-blue", "blue")), prevent, theme = "white")
x | a master data frame, which may or may not be split into multiple groups, depending on |
---|---|
clrby | character, column name of |
type | character, type of stat box set. Must be |
style | character, |
rnd | decimal places to round data to for appearance in stat box ( |
height | character, stat box height. defaults to |
width.icon | character, icon image width, defaults to |
text.size | numeric, scaling for text size, defaults to |
value.size | numeric, scaling for value size, defaults to |
output | character, |
main_title | character, typically contains html. Defaults to |
clrs.default | list of color vectors, one vector for each group. |
prevent | logical, whether stat boxes should be prevented (contextual, e.g., no data available in app). |
theme | color theme, either |
a group list of tag lists containing stat box sets.
text.size
and value.size
are length-six or length-one (repeated) vectors. Defaults are better suited to
type = "valueBox"
than type = "infoBox"
. See stat_boxes
directly for more information on internal function.
If there is a need to have more complete control over customizing content of value or info boxes, use valueBox
or infoBox
directly. stat_boxes
and stat_boxes_group
are two levels of wrapper functions that are intended to
produce specific content for summarizing values in a data frame, pooled or by group, respectively.
#not run