View source: R/bp_visuals_hist.R
bp_hist | R Documentation |
The bp_hist
function serves to display the frequencies of the SBP
and DBP
readings. These histograms are formatted to complement the bp_scatter
function.
bp_hist(data, subj = NULL, bins = 30, na.rm = TRUE)
data |
A processed dataframe resulting from the |
subj |
Optional argument. Allows the user to specify and subset specific subjects
from the |
bins |
An integer specifying how many bins to use for histogram plots. This is a ggplot parameter; default value set to 30 |
na.rm |
An logical value specifying whether or not to remove empty values from data frame. This is a ggplot parameter; default value set to TRUE. |
A list containing four objects: three histogram visual graphics corresponding to
the SBP / DBP totals, SBP frequency, and DBP frequency, and a fourth list element
corresponding to a plot legend object for use in the bp_report
function
data("bp_jhs") 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)) jhs_proc <- process_data(bp_jhs, sbp = "Sys.mmHg.", dbp = "Dias.mmHg.", date_time = "DateTime", hr = "pulse.bpm.") rm(bp_hypnos, bp_jhs) bp_hist(hyp_proc) bp_hist(jhs_proc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.