show_hcluster: Perform hclustering analysis

View source: R/Common.R

show_hclusterR Documentation

Perform hclustering analysis

Description

Perform hclustering analysis

Usage

show_hcluster(
  df,
  group = NULL,
  dist.method = "euclidean",
  hclust.method = "ward.D2",
  color.pla = "npg",
  main = "",
  cutree = 0
)

Arguments

df

row is gene, col is sample

dist.method

Default euclidean. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given.

hclust.method

Default ward.D2. The agglomeration method to be used. This should be (an unambiguous abbreviation of) one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC).

color.pla

Default npg

main

Title

cutree

Number of clusters

Examples

data(LIRI)
loonR::show_hcluster(t(LIRI[,3:5]), LIRI$status)

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.