plot.cardiMetacdw {cardidates}R Documentation

Plot Method for cardiPeakwindow Objects

Description

This function is intended to visualize peaks identified by the metaCDW function.

Usage

## S3 method for class 'cardiMetacdw'
plot(x, y, type = "lattice", scale = TRUE, col.poly = "black", ...)

Arguments

x

an object of class cardiMetacdw resulting from a call to CDW,

y

the original data which were supplied to CDW,

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 xyplot or plot.

Details

This is a top-level function to plot a complete set of fits resurned by metaCDW together with the original data points. The function requires the lattice package.

See Also

peakwindow, CDW metaCDW cardidates

Examples

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

[Package cardidates version 0.4.8 Index]