plot.clustering: Plot an object of class clustering

Description Usage Arguments Value Author(s) Examples

View source: R/clustering.R

Description

Plot an object of class clustering

Usage

1
2
## S3 method for class '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".

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

1
2
3
4
5
6
7
mean_gen <-
 data_ge2 %>%
 means_by(GEN) %>%
 column_to_rownames("GEN")

d <- clustering(mean_gen)
plot(d, xlab = "Euclidean Distance")

metan documentation built on Nov. 10, 2021, 9:11 a.m.