heatmapTransitionProbs: Heatmap of transition probabilities

Description Usage Arguments Value See Also Examples

View source: R/plotting.R

Description

Plot a heatmap of transition probabilities for a multiHMM model.

Usage

1
2
3
4
5
heatmapTransitionProbs(
  model = NULL,
  reorder.states = TRUE,
  transitionProbs = NULL
)

Arguments

model

A multiHMM object or file that contains such an object.

reorder.states

Whether or not to reorder the states.

transitionProbs

A matrix with transition probabilities where dimnames(emissionProbs) gives the state labels. This option is helpful to plot transition probabilities directly without needing a chromstaR-objects. If specified, model will be ignored.

Value

A ggplot object.

See Also

plotting

Examples

1
2
3
4
5
6
## Get an example multiHMM ##
file <- system.file("data","multivariate_mode-combinatorial_condition-SHR.RData",
                    package="chromstaR")
model <- get(load(file))
## Plot transition probabilites as heatmap
heatmapTransitionProbs(model, reorder.states=TRUE)

ataudt/chromstaR documentation built on Dec. 26, 2021, 12:07 a.m.