stat_mismatch {ggbio} | R Documentation

## Calculate mismatch summary

### Description

Calculate mismatch summary

### Usage

    ## for GRanges
    ## S4 method for signature 'GRanges'
    stat_mismatch(data, ..., bsgenome,
                  xlab, ylab, main,
                  geom = c("segment", "bar"),
                  show.coverage = TRUE)
    ## for BamFile
    ## S4 method for signature 'BamFile'
    stat_mismatch(data, ..., bsgenome, which,
                  xlab, ylab, main,
                  geom = c("segment", "bar"),
                  show.coverage = TRUE)

### Arguments

`data` | A `GRanges` or `BamFile` object.
`...` | Extra parameters such as aes() passed to `geom_rect`, `geom_alignment`, or `geom_segment`.
`bsgenome` | `BSgenome` object.
`which` | `GRanges` object to subset the data.
`xlab` | Label for x
`ylab` | Label for y
`main` | Title for plot.
`geom` | The geometric object to use display the data.
`show.coverage` | whether to show coverage as background or not.

### Value

A 'Layer'.

### Author(s)

Tengfei Yin

[Package ggbio version 1.35.2 Index]