- data
User-supplied data set containing blood pressure data. Must
contain a Systolic blood pressure (SBP), Diastolic blood pressure (DBP)
and an ID column. Data must also have either a DATE_TIME or DATE column,
unless an index column is specified for the x axis. An index column trumps
DATE_TIME and DATE if specified.
- index
An optional user-specified column denoting x-axis values (other
than DATE_TIME or DATE columns). index argument must be a character denoting a
column in the supplied data. This argument is useful in the event the
data has no corresponding date/time value, but rather an index of values
such as (reading #1, #2, #3, etc. or office visit #1, #2, etc. as examples)
If NULL, the function will look for DATE_TIME or DATE columns to reference.
If index is character, it will be coerced to factor.
- 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.
- first_hour
Optional argument denoting a value corresponding to the first hour of the
x-axis for the hour plots. Only applicable to data sets that contain a DATE_TIME column.
It is often easier to visualize a BP time series not from 0 - 23 hours but rather an order
that begins or ends with waking up such as first_hour = 6 which will sequence the
hours from 6am (6, 7, ..., 23, 0, ..., 4, 5). The default value for first_hour is
set at 0
- rotate_xlab
An optional logical argument to rotate the x axis labels 90 degrees. The
default value is set to FALSE.
- wrap_var
An optional character argument indicating a column by which to "wrap" the data.
This function utilizes ggplot2's facet_wrap function to split plots according to some
extraneous variable (such as gender, smoking status, awake/asleep, etc.).
- wrap_row
An optional argument specifying how many rows to wrap the plots if wrap_var
is specified.
- wrap_col
An optional argument specifying how many columnss to wrap the plots if wrap_var
is specified.
- method
(ggplot2 plotting arguments) Smoothing method (function) to use. Default is NULL,
but also accepts a character vector "lm", "glm", "gam", "loess". NULL implies that the
smoothing method will be chosen automatically based on the size of the largest group.
See https://ggplot2.tidyverse.org/reference/geom_smooth.html for more details.
- formula
(ggplot2 plotting arguments) Formula to use in smoothing function. Default is NULL
implying y ~ x for fewer than 1,000 observations and y ~ x(x, bs = "cs") otherwise.
See https://ggplot2.tidyverse.org/reference/geom_smooth.html for more details.