metric_panel_footer: Metric Panel Footer

Description Usage Arguments Examples

View source: R/metric-panel-footer.R

Description

This is a component module to ...

Usage

1
2
3
4
5
metric_panel_footer(input, output, session, metric,
  date_range = range(metric$date),
  selected_date_range_preset = "Last Year", ...)

metric_panel_footer_ui(id, selected_period = NULL, periods, ...)

Arguments

input

standard shiny boilerplate

output

standard shiny boilerplate

session

standard shiny boilerplate

metric

a tbl_metric object

date_range

a range of dates

selected_date_range_preset

selected date range preset

...

Additional parameters to pass to module

id

a string indicating the id to call the module with

selected_period

a string indicating selected period

periods

a named vector of periods.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
shinybones::preview_module(metric_panel_footer,
  selected_date_range_preset = 'Last Week',
  selected_period = 'month'
)

## End(Not run)
## Not run: 
library(dplyr)
metrics <- datacampr::dc_s3_read('metrics_condensed.rds')$metrics_condensed
preview_metric(metrics$content_courses_avg_rating_wtd)

## End(Not run)

ramnathv/shinymetrics documentation built on June 29, 2020, 10:39 p.m.