isoPLSDAplot: Plot components from isoPLSDA analysis (pairs plot)

Description Usage Arguments Details Value Examples

View source: R/PLSDA.R

Description

Plot the most significant components that come from isoPLSDA analysis together with the density of the samples scores along those components.

Usage

1
isoPLSDAplot(pls, n = 2)

Arguments

pls

output from isoPLSDA function.

n

integer number of components to plot

Details

The function isoPLSDAplot helps to visualize the results from isoPLSDA. It will plot the samples using the significant components (t1, t2, t3 ...) from the PLS-DA analysis and the samples score distribution along the components. It uses ggpairs for the plot.

Value

ggpairs plot showing the scores for each sample using isomiRs/miRNAs expression to explain variation.

data.frame object with a first column refering to the sample group, and the following columns refering to the score that each sample has for each component from the PLS-DA analysis.

Examples

1
2
3
4
5
6
data(mirData)
# Only miRNAs with > 10 reads in all samples.
ids <- isoCounts(mirData, minc=10, mins=6)
ids <- isoNorm(ids, formula=~group)
pls.ids <- isoPLSDA(ids, "group", nperm = 2)
isoPLSDAplot(pls.ids)

isomiRs documentation built on May 31, 2017, 10:53 a.m.

Search within the isomiRs package
Search all R packages, documentation and source code