rnb.plot.snp.barplot {RnBeads} | R Documentation

## rnb.plot.snp.barplot

### Description

Bar plots of beta-values from the genotyping probes

### Usage

    rnb.plot.snp.barplot(dataset, probeID, writeToFile = FALSE,
      numeric.names = FALSE, ...)

### Arguments

`dataset` | Dataset as an instance of `RnBeadRawSet` or `RnBeadSet`. Alternatively, the dataset can be specified as a non-empty `matrix` containing the computed beta values on the SNP probes.
`probeID` | Probe identifier. This must be one of `rownames(meth(dataset))`.
`writeToFile` | Flag specifying whether the output should be saved as `ReportPlot`.
`numeric.names` | if `TRUE` and `writeToFile` is `TRUE`substitute the plot options in the plot file name with digits.
`...` | Additional named arguments passed to `createReportPlot`.

### Value

plot as an object of type `ReportPlot` if `writeToFile` is `TRUE` and of class `ggplot` otherwise.

### Author(s)

Pavlo Lutsik

### Examples

    library(RnBeads.hg19)
    data(small.example.object)
    samp<-samples(rnb.set.example)[1]
    rnb.plot.snp.barplot(rnb.set.example, samp)

[Package RnBeads version 2.4.0 Index]