plotRDA {MEAL} | R Documentation |
Plot RDA results
plotRDA(object, pheno, n_feat = 5, main = "RDA plot")
object |
|
pheno |
data.frame with the variables used to color the samples. |
n_feat |
Numeric with the number of cpgs to be highlighted. |
main |
Character with the plot title. |
A plot is generated on the current graphics device.
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))) }