data2Gviz {STAN} | R Documentation

## Convert data for plotting with Gviz

### Description

Convert data for plotting with Gviz

### Usage

    data2Gviz(obs, regions, binSize, gen, col = "black", type = "h", chrom)

### Arguments

`obs` | The observations. A list of one or more entries containing the observation matrix (`numeric`) for the samples (e.g. chromosomes).
`regions` | GRanges object of the regions (e.g. chromosomes) stored in the viterbi path.
`binSize` | The bin size of the viterbi path.
`gen` | The geome id, e.g. hg19, hg38 for human.
`col` | The color of the data tracks.
`type` | Type of plot (See Gviz DataTrack documentation).
`chrom` | Chromosome in chich to create the object.

### Value

A list containing the data tracks converted to Gviz objects for plotting.

[Package STAN version 2.14.0 Index]