Learn R Programming

henna (version 0.7.5)

correlationPlot: Plot a correlation matrix

Description

This function plots a correlation matrix.

Usage

correlationPlot(mat, title = NULL, legendTitle = "Correlation", ...)

Value

An object of class gg.

Arguments

mat

A numeric matrix or data frame.

title

Plot title.

legendTitle

Legend title.

...

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