densityPlot: Density distribution of correlation coefficients and...

Description Usage Arguments Value Examples

View source: R/densityPlot.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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)

CeTF documentation built on Nov. 25, 2020, 2 a.m.