DaMiR.corrplot: Correlation Plot

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plot.R

Description

This function easily draws the correlation plot of surrogate variables (sv) and variables.

Usage

1
DaMiR.corrplot(sv, df, type = c("pearson", "spearman"), sig.level = 0.01)

Arguments

sv

The matrix of sv identified by DaMiR.SV function

df

A data frame with class and known variables; at least one column with 'class' label must be included

type

Type of correlation metric to be applied; default is "pearson"

sig.level

The significance level of the correlation; default is 0.0001

Details

Factorial variables are allowed. They will be tranformed as numeric before applying the rcorr function of Hmisc.The corrplot function, which draws the plot, marks with a cross all the correlations that do not reach the significance threshold defined in the sig.level argument.This plot allows the user to identify those sv that present significant correlations with either technical and biological known variables. Notably, none of the sv should present signifcant correlation with "class" variable.

Value

A correlation plot between sv and known variables.

Author(s)

Mattia Chiesa, Luca Piacentini

See Also

DaMiR.SV

Examples

1
2
3
4
5
# use example data:
data(df)
data(sv)
# Draw correlation plot:
#DaMiR.corrplot(sv=sv, df=df, type = "pearson", sig.level=0.01)

BioinfoMonzino/DaMiRseq documentation built on Aug. 22, 2021, 3:11 p.m.