Learn R Programming

MEAL (version 1.2.3)

plotRegion: Plot of the region

Description

Plot of the beta values againts their position. Data is taken from probe analysis. Cpgs with a p-value smaller than 0.05 (without adjusting) are blue and points with a p-value greater than 0.05 are red.

Usage

plotRegion(object, variable = modelVariables(object)[[1]], range = NULL)

Arguments

object
AnalysisResults or AnalysisRegionResults
variable
Character with the variable name used to obtain the probe results. Note: model name should be used. Original variable name might not be valid.
range
GenomicRange whose cpgs will be shown (only for AnalysisResults objects)

Value

A plot is generated on the current graphics device.

Examples

Run this code
if (require(minfiData) & require(GenomicRanges)){
set <- prepareMethylationSet(getBeta(MsetEx), pheno = pData(MsetEx))
range <- GenomicRanges::GRanges(seqnames=Rle("chrY"), 
ranges = IRanges(3000000, end=12300000))
rangeNoSNPs <- DARegionAnalysis(set, variable_names = "sex", range = range)
plotRegion(rangeNoSNPs)
}

Run the code above in your browser using DataLab