plot.cardiMetacdw {cardidates}  R Documentation 
This function is intended to visualize peaks identified by the metaCDW function.
## S3 method for class 'cardiMetacdw' plot(x, y, type = "lattice", scale = TRUE, col.poly = "black", ...)
x 
an object of class 
y 
the original data which were supplied to

type 
either "lattice" or "polygon", 
scale 
a logical value indicating whether the height of polygons should be scaled relative to the highest peak, 
col.poly 
color of polygons, either a single numeric value for all years or a vector of the same length as number of samples, 
... 
other arguments passed to 
This is a toplevel function to plot a complete set of
fits resurned by metaCDW
together with the original data points.
The function requires the lattice package.
peakwindow
,
CDW
metaCDW
cardidates
## artificial test data data(carditest) ## identify all peaks tt < metaCDW(carditest) ## plot it; plot(tt, carditest) ## or with alternate layout: plot(tt, carditest, layout = c(1, 3)) ## plot polygons plot(tt, carditest, type = "polygon")