heatmapCombinations: Plot a heatmap of combinatorial states

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotting.R

Description

Plot a heatmap that shows the binary presence/absence of marks for the different combinations.

Usage

1
heatmapCombinations(model = NULL, marks = NULL, emissionProbs = NULL)

Arguments

model

A multiHMM object or file that contains such an object.

marks

A character vector with histone marks. If specified, model will be ignored.

emissionProbs

A matrix with emission probabilities where dimnames(emissionProbs) gives the state labels and marks. This option is helpful to plot probabilistic chromatin states (not part of chromstaR). If specified, model and marks will be ignored.

Value

A ggplot object.

Author(s)

Aaron Taudt

See Also

plotting

Examples

1
2
3
4
5
6
marks <- c('H3K4me3','H3K27me3','H4K20me1')
heatmapCombinations(marks=marks)

file <- system.file("data","multivariate_mode-combinatorial_condition-SHR.RData",
                    package="chromstaR")
heatmapCombinations(file)

chromstaR documentation built on Nov. 8, 2020, 8:29 p.m.