Description Usage Arguments Value Examples
View source: R/ResultSet_plotRDA.R
Plot RDA results
1 | plotRDA(object, pheno = data.frame(), n_feat = 5, main = "RDA plot", alpha = 1)
|
object |
|
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. |
A plot is generated on the current graphics device.
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)))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.