Description Usage Arguments Examples
Preview a metric in a shinydashboard
1 | preview_metric(metric, ...)
|
metric |
a |
... |
additional parameters passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(dplyr)
## Not run:
metric_satisfaction <- datacampr::tbl_metric_product_survey_avg_satisfaction()
preview_metric(metric_satisfaction)
metric_rating <- datacampr::tbl_metric_content_courses_avg_rating_wtd()
preview_metric(metric_rating, selected_period = 'Rolling 28 Day')
preview_metric(
metric %>%
filter(launch_status == "live") %>%
filter(technology == "R"),
selected_period = 'Rolling 28 Day'
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.