View source: R/adproclus_classes.R
plot.adpc | R Documentation |
When passing a (low dimensional) ADPROCLUS solution of class adpc
to
the generic plot()
, this method plots the solution in one of the
following three ways:
Each cluster is a vertex and the edge between two vertices represents the overlap between the corresponding clusters. The size of a vertex corresponds to the cluster size. The overlap is represented through color, width and numerical label of the edge. The numerical edge-labels can be relative (number of overlap observations / total observations) or absolute (number of observations in both clusters).
Plot the profile matrix (P
for full dimensional model, C
for low dimensional model)
in the style of a correlation plot to visualize the relation of each cluster
with each variable.
Plot the low dimensional
component-by-variable matrix B'
in the style of a
correlation plot to visualize the relation of each component with each
original variable. NOTE: Only works for low dimensional ADPROCLUS.
## S3 method for class 'adpc'
plot(x, type = "Network", title = NULL, relative_overlap = TRUE, ...)
x |
Object of class |
type |
Choice for type of plot: one of |
title |
String. OPTIONAL. |
relative_overlap |
Logical, only applies to plot of
|
... |
additional arguments will be passed on to the functions
|
Invisibly returns the input model.
# Loading a test dataset into the global environment
x <- stackloss
# Quick low dimensional clustering with K = 3 clusters and S = 1 dimensions
clust <- adproclus_low_dim(x, 3, 1)
# Produce three plots of the model
plot(clust, type = "Network")
plot(clust, type = "Profiles")
plot(clust, type = "vars_by_comp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.