dow_tod_plots {bp} R Documentation

## Blood Pressure Tables in Graphical Format

### Description

Blood Pressure Tables in Graphical Format

### Usage

dow_tod_plots(data, subj = NULL)


### Arguments

 data A processed dataframe resulting from the process_data function that contains the SBP, DBP, DAY_OF_WEEK, Time_of_Day, SBP_Category, and DBP_Category columns. subj Optional argument. Allows the user to specify and subset specific subjects from the ID column of the supplied data set. The subj argument can be a single value or a vector of elements. The input type should be character, but the function will comply with integers so long as they are all present in the ID column of the data.

### Value

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.

### Examples


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)
)



[Package bp version 2.1.0 Index]