plot_rho: rank-based correlation heatmap

Description Usage Arguments Value Author(s)

Description

Work out the correlation of N samples using Spearmans rho, then plot these correlations as a heatmap, and return the average correlation of each sample

Usage

1
2
  plot_rho(x, do.mfrow = TRUE,
    name = paste(ncol(x), "arrays"), col = 1)

Arguments

x

A matrix or data.frame of data, with samples in column (eg gene expression data), or a pre-computed correlation matrix (which must be square with a diagonal of 1's)

name

Used for naming the plots appropriately

do.mfrow

logical: TRUE means call par(mfrow=c(1, 2)); FALSE means don't set the graphical layout

col

the colour to use. It will be recycled if necessary

Value

invisibly returns the average correlation of each column

Author(s)

Mark Cowley, 9 November 2005


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.