evo_dendrogram: Plot evolutionary dendogram

View source: R/evo_dendrogram.R

evo_dendrogramR Documentation

Plot evolutionary dendogram

Description

Plot evolutionary dendrogram of a selected variable in a hierarchical clustering of a given dataset of interest.

Usage

evo_dendrogram(
  data,
  var_col,
  hclust_obj,
  tip_names = TRUE,
  scale_data = TRUE,
  fsize = c(0.9, 0.8),
  outline = FALSE,
  lwd = 1,
  leg_txt = NA,
  palette_discrete = "Set1",
  cex = c(0.4, 0.25),
  ...
)

Arguments

data

Data frame object of interest.

var_col

Columns from the dataset to plot the evolutionary dendrogram.

hclust_obj

Hierarchical clustering object obtained by applying a hierarchical clustering method in the dataset of interest.

tip_names

Set whether to plot row names in the evolutionary dendrogram. Default is TRUE.

scale_data

Set whether to scale all continuous variable in the dataset when plotting.

fsize

Figure size of each evolutionary dendrogram relative to the default dimensions from base plot. Default is c(0.9, 0.8).

outline

Set whether to draw border around each evolutionary dendrogram plot. Default is FALSE.

lwd

Line width relative to the default. Default is 1.

leg_txt

Legend text to place in legend corner. Default is NA.

palette_discrete

Palette used to Ancestral State reconstruction of categorical variables. Default is "Set1".

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. Default is c(0.4, 0.25).

...

Additional R base plot arguments to be passed to graphical parameters.

Value

Evolutionary dendrogram plot.


Monoxido45/PhyloHclust documentation built on Sept. 25, 2024, 3:17 a.m.