plotCor: Correlation plot for partial correlations within...

View source: R/visualization.R

plotCorR Documentation

Correlation plot for partial correlations within polycistronic clusters

Description

This function generates a correlation (heatmap-type) plot for partial correlations. Polycistronic clusters of the markers are highlighted in the lower tri-diagonal part of the matrix while partial correlations are shown in the upper tri-diagonal part. Partial correlations can be computed using the partialCor function.

Usage

plotCor(pCor, clusters, title)

Arguments

pCor

Matrix of partial correlations. Rows and columns must be named by their corresponding markers

clusters

Named Vector of clusters. Associates each marker to a polycistronic cluster. Usually generated using the function defineClusters.

title

Optional. Plot title

Value

ggplot2 object of a correlation plot for the given partial correlations.


LXQin/DANA documentation built on March 7, 2024, 3:24 a.m.