Plot best n cpgs

Description

Wrapper of plotCPG that plots the top n features.

Usage

1
plotBestFeatures(set, n = 10, variables = variableNames(set)[1])

Arguments

set

AnalysisResults, AnalysisRegionResults, ExpressionSet or MethylationSet

n

Numeric with the number of features to be plotted.

variables

Character vector with the names of the variables to be used in the splitting.

Value

Plots are created on the current graphics device.

See Also

plotFeature

Examples

1
2
3
4
5
if (require(minfiData)){
 set <- prepareMethylationSet(getBeta(MsetEx)[1:10, ], 
 pheno = pData(MsetEx))
 plotBestFeatures(set, 2, variables = "Sample_Group")
 }

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.