heatmapTransitionProbs {chromstaR} | R Documentation

## Heatmap of transition probabilities

### Description

Plot a heatmap of transition probabilities for a `multiHMM` model.

### Usage

    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

    ## 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)

[Package chromstaR version 1.13.0 Index]