correlationPlot: Plot a correlation matrix

View source: R/tile_plot.R

correlationPlotR Documentation

Plot a correlation matrix

Description

This function plots a correlation matrix.

Usage

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

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.

Value

An object of class gg.

Examples

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


henna documentation built on Feb. 17, 2026, 9:08 a.m.