plotCorrMatrix: plotCorrMatrix

Description Usage Arguments Examples

View source: R/FUNCTION_plotCorrMatrix.R

Description

This function generates a plot of a correlation matrix with various options. It is a wrapper function for the corrplot function from the corrplot package.

Usage

1
2
3
4
5
6
7
plotCorrMatrix(
  X,
  order = "original",
  n.groups = NA,
  label = NULL,
  plot.type = "circle"
)

Arguments

X

a correlation matrix, typically generated by a call to calcCorrMatrix or the base fn cor()

order

either "original" or "clustered" (for now, other options to be explored)

n.groups

number of groups to mark (applies only if order = "clustered"). NA produces default of round(n/3).

label

plot title, default is NULL

plot.type

layout options in corrplot package. Default is "circle". Other good options are "color" and "number"

Examples

1
2

SOLV-Code/SPATFunctions-Package documentation built on April 25, 2020, 12:59 a.m.