cor_image: Graphical display of a correlation matrix

View source: R/cor_image.R

cor_imageR Documentation

Graphical display of a correlation matrix

Description

The function shows an image() of a correlation matrix, where row-and column names are use as labels.

Usage

cor_image(cor_mat, cex = 0.7, srt = 45, cex.axis = 0.7)

Arguments

cor_mat

A matrix of pairwise correlations

cex, cex.axis

Numerics indicating the font size for text- and axis labels

srt

A numeric controlling the angle of the text

Value

A graphical representation of the correlation matrix

Author(s)

Lukas Dargel

Examples

cor_mat <- cor(matrix(rnorm(40),ncol = 4))
cor_image(cor_mat)

LukeCe/spflow documentation built on Nov. 11, 2023, 8:20 p.m.