Learn R Programming

henna (version 0.3.4)

correlationPlot: Plot a correlation matrix

Description

This function plots a correlation matrix.

Usage

correlationPlot(
  mat,
  title = "Correlation plot",
  legendLab = "Correlation",
  ...
)

Value

An object of class gg.

Arguments

mat

A numeric matrix or data frame.

title

Plot title.

legendLab

Legend label.

...

Additional parameters passed to tilePlot.

Details

A thin wrapper around tilePlot.

Examples

Run this code
mat <- matrix(runif(100, -1, 1), nrow=10)
colnames(mat) <- paste0('I', seq(10))
mat <- round(cor(mat), 2)
correlationPlot(mat)

Run the code above in your browser using DataLab