shiny element displaying a progress bar and observation count.
countBar(inputId, label, countmax, countnow = NULL, counttotal = countmax)updateCountBar(
session = getDefaultReactiveDomain(),
inputId,
label,
countmax,
countnow = NULL,
counttotal
)
updateCountText(
session = getDefaultReactiveDomain(),
inputId,
label,
countmax,
countnow
)
shiny.tag object with a progress bar and a label.
(character(1)) shiny id of the parent element (e.g. a check-box group input).
(character(1)) Text to display followed by counts.
(numeric(1)) Maximum count for a single element.
(numeric(1)) Current count for a single element.
(numeric(1)) Sum total of maximum counts of all elements, see Details.
(session) shiny session object passed to function given to shinyServer.
A progress bar is created to visualize the number of counts in a variable, with filling and a text label.
progress bar width is derived as a fraction of the container width: style = "width: <countmax> / <counttotal>%",
progress bar is filled up to the fraction <countnow> / <countmax>,
text label is obtained by <label> (<countnow> / <countmax>).