ggplot2_dendrogram: Hierarchical clustering from a matrix using ggplot2 and...

Description Usage Arguments Value Examples

View source: R/ggplot2_dendrogram.R

Description

Hierarchical clustering from a matrix using ggplot2 and ggdendro

Usage

1
ggplot2_dendrogram(data, title, samples, expGroups)

Arguments

data

(compulsory) either a matrix, a DESeqTransform or a DESeqDataSet object.

title

(optional) main title of the plot and the name of the file. Default: time stamp.

samples

(optional) vector containing the sample names. Default: column names of data.

expGroups

(optional) vector containing the name of the experimental expGroups (same order as in the columns of data). no default

Value

a PDF file.

Examples

1
2
dat <- matrix(rnorm(1200), ncol=6)
ggplot2_dendrogram(dat, samples=1:6, expGroups=rep(c("A", "B"), 3), title="test")

sarahbonnin/ggplot2Functions documentation built on Nov. 5, 2019, 6:14 a.m.