plot-methods {archetypes}R Documentation

Plot of data and archetypes.

Description

Plot for two-dimensional data and archetypes.

Usage

## S3 method for class 'archetypes':
plot (x, y, data.col=gray(0.7), data.pch=19,
    atypes.col=2, atypes.pch=19, ahull.show=TRUE, ahull.col=atypes.col,
    chull, chull.col=1, chull.pch=19, adata.show=FALSE, adata.col=3,
    adata.pch=13, link.col=data.col, ...)
## S3 method for class 'stepArchetypes':
plot (x, y, data.col=gray(0.7), data.pch=19,
    atypes.col=(seq_len(length(x) * length(x[[1]])) + 1),
    atypes.pch=19, ahull.show=TRUE, ahull.col=atypes.col, ...)

Arguments

x An archetypes or stepArchetypes object.
y Data matrix or data frame.
data.col Color of data points.
data.pch Type of data points.
atypes.col Color of archetypes points.
atypes.pch Type of archetypes points.
ahull.show Show approximated convex hull.
ahull.col Color of approximated convex hull line.
chull An integer vector giving the indices of the points from data lying on the convex hull.
chull.col Color of convex hull points.
chull.pch Type of convex hull points.
adata.show Show approximated data with link to the original data.
adata.col Color of approximated data points.
adata.pch Type of approximated data points.
link.col Color of link between approximated and original data points.
... Passed to the underlying plot functions.

Value

Undefined.

Note

The link between approximated and original data is based on an idea and Matlab source code of Bernard Pailthorpe.


[Package archetypes version 0.1 Index]