plot.env_dissimilarity: Plot an object of class env_dissimilarity

View source: R/env_dissimilarity.R

plot.env_dissimilarityR Documentation

Plot an object of class env_dissimilarity

Description

Create dendrograms to show the dissimilarity between environments.

Usage

## S3 method for class 'env_dissimilarity'
plot(x, var = 1, nclust = NULL, ...)

Arguments

x

An object of class env_dissimilarity

var

The variable to plot. Defaults to var = 1 the first variable of x.

nclust

The number of clusters to show.

...

Other arguments bo be passed to the function stats::hclust().

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples


library(metan)
mod <- env_dissimilarity(data_ge, ENV, GEN, REP, GY)
plot(mod)


metan documentation built on March 7, 2023, 5:34 p.m.