Skip to contents

Basic usage

mantis_report()
Create an interactive time series report from a data frame
inputspec()
Specify relevant columns in the source data frame
example_prescription_numbers
Example data frame containing numbers of antibiotic prescriptions in long format

Specifying the output format

outputspec_interactive()
Specify output options for an interactive report
outputspec_static_heatmap()
Specify output options for a static report containing heatmaps
outputspec_static_multipanel()
Specify output options for a static report containing a panel of plots.

Specifying alerting rules

alertspec()
Specify alerting rules to be run on the data and displayed in the report
alert_rules()
Create set of alert rules
alert_missing() alert_equals() alert_above() alert_below() alert_difference_above_perc() alert_difference_below_perc() alert_custom()
Built-in alert rules
mantis_alerts()
Generate a data frame containing alert results

Creating a bespoke report

bespoke_rmd_initialise_widgets()
Initialise HTML widgets
bespoke_rmd_output()
Dynamically generate mantis output for an rmd chunk
bespoke_rmd_alert_results()
Dynamically generate a table containing alert results for an rmd chunk