View source: R/bp_visuals_tables.R
dow_tod_plots | R Documentation |
Blood Pressure Tables in Graphical Format
dow_tod_plots(data, subj = NULL)
data |
A processed dataframe resulting from the |
subj |
Optional argument. Allows the user to specify and subset specific subjects
from the |
A list of four 'gtables' that correspond to the tables for Day of Week and
Time of Day broken down by both SBP
and DBP
.
data("bp_hypnos") hyp_proc <- process_data(bp_hypnos, bp_type = 'abpm', sbp = "syst", dbp = "DIAST", date_time = "date.time", id = "id", wake = "wake", visit = "visit", hr = "hr", map = "map", rpp = "rpp", pp = "pp", ToD_int = c(5, 13, 18, 23)) rm(bp_hypnos) dow_tod_plots_out <- dow_tod_plots(hyp_proc) grid::grid.draw( gridExtra::grid.arrange(dow_tod_plots_out[[1]], dow_tod_plots_out[[2]], ncol = 2) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.