corr_plot: Simple correlation plot with sensable defaults

Description Usage Arguments Value Examples

Description

creates a simple correlation plot Essentially a heatmap built on top of gplot::heatmap.2. UNDER HEAVY DEVELOPMENT.

Usage

1
2
corr_plot(corr, colorbreaks = c(-0.2, 0, 0.2, 0.4, 0.6, 0.8, 1),
  colors = NA, columnlabels = NA, labRow = NA, xlab = NA)

Arguments

corr

correlation matrix

colorbreaks

cutpoints of the discontinuous factor loading colors

colors

a prespecified vector of colors corresponding to colorbreaks.

columnlabels

x-axis labels (typically more discriptive variable/factor names)

labRow

Names of variables / factors

xlab

x-axis label

Value

A graphic of correlations

Examples

1
2
3
4
5
6
7
library(datasets)
library(dplyr)
library(RColorBrewer)
data(mtcars)
mtcars[1:4,1:4] %>%
cor() %>%
corr_plot(columnlabels = 1:4)

mattkcole/FAtools documentation built on May 21, 2019, 1:24 p.m.