corHeat: Sample correlation heatmap

View source: R/Correlations.R

corHeatR Documentation

Sample correlation heatmap

Description

Sample correlation heatmap

Usage

corHeat(
  counts,
  method = "spearman",
  title = "Spearman Correlation",
  hmcol = NULL,
  showNum = TRUE,
  showTree = FALSE,
  annodf = NULL,
  annoCols = "Dark2"
)

Arguments

counts

data.frame object with rows=genes, and columns=samples

method

character indicating correlation method, default is "spearman"

title

character indicating plot title

hmcol

Color ramp palette to use for heatmap colours. Defaults to 'RdYlBu' colours

showNum

Boolean indicating if correlation coefficients should be displayed on heatmap. Default=TRUE.

showTree

Boolean indicating if hierarchical clustering trees should be shown. Default=FALSE

annodf

Data frame with rownames=sample names and columns of annotation data to be plotted. Leave NULL if none.

annoCols

Colour palette for annotations

Value

Heatmap with clustered rows/columns of correlation between samples


kevincjnixon/BinfTools documentation built on July 10, 2024, 11:46 a.m.