plotGRanges {trackViewer} | R Documentation

## plot GRanges data

### Description

A function to plot GRanges data for given range

### Usage

    plotGRanges(
      ...,
      range = GRanges(),
      viewerStyle = trackViewerStyle(),
      autoOptimizeStyle = FALSE,
      newpage = TRUE
    )

### Arguments

`...` | one or more objects of `GRanges`
`range` | an object of `GRanges`
`viewerStyle` | an object of `trackViewerStyle`
`autoOptimizeStyle` | should use `optimizeStyle` to optimize style
`newpage` | should be draw on a new page?

### Value

An object of `viewport` for `addGuideLine`

### See Also

See Also as `addGuideLine`, `addArrowMark`

### Examples

    gr1 <- GRanges("chr1", IRanges(1:50, 51:100))
    gr2 <- GRanges("chr1", IRanges(seq(from=10, to=80, by=5),
                                   seq(from=20, to=90, by=5)))
    vp <- plotGRanges(gr1, gr2, range=GRanges("chr1", IRanges(1, 100)))
    addGuideLine(guideLine=c(5, 10, 50, 90), col=2:5, vp=vp)

    gr <- GRanges("chr1", IRanges(c(1, 11, 21, 31), width=9),
                  score=c(5, 10, 5, 1))
    plotGRanges(gr, range=GRanges("chr1", IRanges(1, 50)))

[Package trackViewer version 1.23.5 Index]