plot_ed_attendances_timeseries_flow: Weekly attendance of emergency department by flow groups

View source: R/plot_ed_attendances_timeseries_flow.R

plot_ed_attendances_timeseries_flowR Documentation

Weekly attendance of emergency department by flow groups

Description

plot_ed_attendances_timeseries_flow shows weekly attendance of emergency department by different flow groups.

Usage

plot_ed_attendances_timeseries_flow(
  data,
  startDate,
  endDate,
  timeUnit = "week",
  returnPlot = TRUE,
  hospitalName = "{hospital_name}",
  restrictPlotRange = TRUE
)

Arguments

data

Hospital episode data.

startDate

The first date of the period for which the analysis will run.

endDate

The last date of the period for which the analysis will run.

timeUnit

TBD

returnPlot

Plots the graph if set to TRUE, returns a dataframe otherwise.

hospitalName

The name of the hospital for which the analysis is being done.

restrictPlotRange

A boolean indicating whether to zoom the plot to only the range specified by startDate and endDate.

Value

A lineplot (default) or a dataframe showing the distribution of ED attendances for different flow groups.

Examples

## Not run: 
TBD

## End(Not run)

HorridTom/hospitalflow documentation built on June 14, 2022, noon