densityPlot: Density distribution of correlation coefficients and...

View source: R/densityPlot.R

densityPlotR Documentation

Density distribution of correlation coefficients and significant PCIT values

Description

Generate the density plot for adjacency matrices. This function uses the raw adjacency matrix and significant adjacency matrix resulted from PCIT function.

Usage

densityPlot(mat1, mat2, threshold = 0.5)

Arguments

mat1

Raw adjacency matrix.

mat2

Significant adjacency matrix.

threshold

Threshold of correlation module to plot (default: 0.5).

Value

Returns an density plot of raw correlation with significant PCIT values.

Examples

# loading a simulated normalized data
data('simNorm')

# getting the PCIT results
results <- PCIT(simNorm[1:20, ])

# using the PCIT results to get density distribution of correlation coefficients
densityPlot(mat1 = results$adj_raw,
            mat2 = results$adj_sig,
            threshold = 0.5)


cbiagii/pcitRif documentation built on Feb. 5, 2023, 9:03 p.m.