DendogramPlot: DendogramPlot

Description Usage Arguments Examples

View source: R/DendogramPlot.R

Description

Plots the dendogram for a cluster in a clustered dataset.

Usage

1
2
3
4
5
6
7
8
9
DendogramPlot(
  cluster.no,
  cluster.dataset,
  method = "agglom",
  metric = "euclidean",
  print = TRUE,
  save = FALSE,
  path = NULL
)

Arguments

cluster.no

The number which identifies the cluster. If a vector is provided then multiple clusters will be used.

cluster.dataset

A transcriptomics dataset where the final column details the cluster the gene belongs to. First column should be gene names. All remaining columns should be expression levels.

method

The clustering method to be used. Currently accepts 'agglom' and 'diana'.

metric

The distance metric to be used to calculate the distances between genes. See parallelDist::parDist for all accepted arguments. Also allows the option of 'abs.correlation'.

print

Logical. If TRUE renders plot in the plot viewer. Defaults to TRUE

save

Logical. If TRUE, saves plot to working directory. Defaults to FALSE.

path

The directory to be used for saving plots to. Uses the working directory by default. Not used if save = FALSE

Examples

1
2
diana.df <- DianaClustering(Laurasmappings, k= 10)
DendogramPlot(5, diana.df, method = 'diana')

nathansam/CircadianTools documentation built on Dec. 26, 2019, 11:30 a.m.