plot_episode: Individual episode chart

plot_episodeR Documentation

Individual episode chart

Description

Create an individual episode chart for its diagnosis, drugs and physiological variables. Diagnosis and drugs are always included, while the user can select other longitudinal data.

Usage

plot_episode(r, v)

Arguments

r

ccEpisode-class

v

short name of longitudinal data. While v is not given, the chart will only display h_rate, spo2, bilirubin, platelets, pao2_fio2, gcs_total.

Value

a table of selected vars of an episode

Examples

## Not run: 
plot_episode(ccd@episodes[[1]]) # plot first episode with default variables. 
plot_episode(ccd@episodes[[1]], "h_rate") # plot first episode heart rate

## End(Not run)

ropensci/cleanEHR documentation built on Aug. 28, 2022, 8:31 p.m.