Learn R Programming

ABarray (version 1.40.0)

matrixPlot: heatmap for matrix

Description

Create heatmap from a matrix

Usage

matrixPlot(x, nrgcols = 50, rlabels = TRUE, clabels = TRUE, rcols = 1, ccols = 1, k = 10, title = "", ...)

Arguments

x
a matrix
nrgcols
number of colors to use
rlabels
whether to use row labels
clabels
whether to use column labels
rcols
use supplemental row label
ccols
use supplemental column label
k
number of tick labels for scale bar
title
title for the plot
...
additional argument

Value

heatmap

Details

This function can be used to plot any numberic matrix, e.g., correlation matrix, S/N matrix, signal intensity matrix, etc

Examples

Run this code

Run the code above in your browser using DataLab