Learn R Programming

MortHump (version 0.2)

plot.codgroup: Plot diagnostic for a codgroup object

Description

Four plots (selectable by which) are currently available. They provide details on the clustering process that led to the suggested grouping.

Usage

# S3 method for codgroup
plot(x, which, ...)

Arguments

x

codgroup object resulting from a call to the codgroup function

which

which type of plot to be produced (see details)

...

other parameters to be passed through to plotting functions

Details

Four plots are curently available.

which = 1

Dendrogram from the hierarchical clustering algorithm

which = 2

Plot a list of different criteria for each possible values of k.

which = 3

Plot the clusters on the plan between the first two dimensions of a Principal Component Analysis.

which = 4

Plot the first difference of the force of mortality pooled by cluster.

See Also

codgroup

Examples

Run this code
# NOT RUN {
data(USA2000m)

grouping <- codgroup(USA2000m, k = "HGSD", x.range = 10:34)

plot(grouping, which = 3)

# }

Run the code above in your browser using DataLab