Learn R Programming

cleanEHR (version 1.0)

plot_episode: 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

Run this code
# 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
# }

Run the code above in your browser using DataLab