metan (version 1.2.1)

plot.clustering: Plot an object of class clustering

Description

Plot an object of class clustering

Usage

# S3 method for clustering
plot(x, horiz = TRUE, type = "dendrogram", ...)

Arguments

x

An object of class clustering

horiz

Logical indicating if the dendrogram should be drawn horizontally or not.

type

The type of plot. Must be one of the 'dendrogram' or 'cophenetic'.

...

Other arguments passed from the function plot.dendrogram or abline.

Value

An object of class gg, ggplot if type == "cophenetic".

Examples

Run this code
# NOT RUN {
# Define 4 clusters
d = clustering(data_ge2,
               means_by = GEN,
               scale = TRUE,
               nclust = 4)
plot(d)

# }

Run the code above in your browser using DataCamp Workspace