plotRDA: Plot RDA results

Description Usage Arguments Value Examples

View source: R/ResultSet_plotRDA.R

Description

Plot RDA results

Usage

1
plotRDA(object, pheno = data.frame(), n_feat = 5, main = "RDA plot", alpha = 1)

Arguments

object

ResultSet

pheno

data.frame with the variables used to color the samples.

n_feat

Numeric with the number of cpgs to be highlighted. Default: 5.

main

Character with the plot title.

alpha

Numeric with the alpha level for colour transparance. Default: 1; no transparency.

Value

A plot is generated on the current graphics device.

Examples

1
2
3
4
5
6
if (require(minfiData)){
set <- ratioConvert(mapToGenome(MsetEx[1:10,]))
model <- model.matrix(~set$sex)
rda <- runRDA(set, model)
plotRDA(rda, pheno = data.frame(factor(set$sex)))
}

MEAL documentation built on Feb. 3, 2021, 2 a.m.