plot.hemo: Plot hemo data

Description Usage Arguments Details Author(s) References See Also Examples

Description

Plot hemo data

Usage

1
2
3
4
## S3 method for class 'hemo'
plot(x, style=c("ts", "clock", "pairs"),
     which, cex=par("cex"), debug=FALSE, 
     show.mean=TRUE, show.lm=FALSE, show.spline=TRUE, ...)

Arguments

x

hemo object, typically result of read.hemo.

style

"ts" for time-series, "clock" for r-theta with angle indicating time of day, or "pairs" for a pairs plot.

which

integer, or list of integers, indicating what is to be plotted; see “Details”.

cex

base symbol size to use; some elements are smaller than this.

debug

boolean flag, set to TRUE to get printout of some things that may help in debuggin the code.

show.mean

boolean flag, set to TRUE to get a ring with mean value. This is only used for clock plots.

show.lm

boolean flag, set to TRUE to get a linear regression added to the plot (with confidence intervals on the prediction).

show.spline

boolean flag, set to TRUE to get a smoothing spline added to the plot. This will have one degree of freedome per month of data, or 2 degrees of freedom if there are fewer than 2 months of data. No spline will be computed unless there are 10 data points.

...

optional arguments passed to plotting functions.

Details

Several plots are available, depending on the values of item, style, and which. Values of which (for item="bp") are as follows.

If which is not provided, then the value c(1,2,6) will be used for ts plots, c(1,2,5,7) for clock plots, or c(2,3) for pairs plots.

Author(s)

Dan Kelley

References

Some references from the literature are below.

http://hyper.ahajournals.org/cgi/content/full/30/6/1410

http://stroke.ahajournals.org/cgi/content/full/39/7/1932#R5-510677

http://hyper.ahajournals.org/cgi/reprint/20/5/601.pdf?ijkey=2b668babf1f9b647cd5fb79092cf825663db7d27

"Hypertension: management of hypertension in adults in primary care". NICE Clinical Guideline 34. London, England: National Institute for Health and Clinical Excellence (NICE). June 2006. Retrieved 2008-09-15. http://www.nice.org.uk/nicemedia/pdf/CG034NICEguideline.pdf

See Also

See read.hemo for more information on dealing with the hemo data type, including examples.

Examples

1
2
3
library(hemo)
data(hemo)
plot(hemo, style="clock")

dankelley/hemo documentation built on May 14, 2019, 4:09 p.m.