viterbi2Gviz {STAN} | R Documentation

## Convert state segmentation for plotting with Gviz

### Description

Convert state segmentation for plotting with Gviz

### Usage

    viterbi2Gviz(viterbi, chrom, gen, from, to, statecols, col = NULL)

### Arguments

`viterbi` | A list containing the viterbi paths as factors. The output from getViterbi.
`chrom` | The chromosome/sequence if to convert.
`gen` | The geome id, e.g. hg19, hg38 for human.
`from` | Genomic start poistion.
`to` | Genomic end poistion.
`statecols` | Named vector with state colors.
`col` | Background color.

### Value

A list containing the viterbi path converted to Gviz objects for plotting.

[Package STAN version 2.10.1 Index]