plotCorrTriangle: Plot triangle of correlation matrix

Description Usage Arguments Details Value Examples

Description

Plot lower triangle of correlation matrix

Usage

1
plotCorrTriangle(C, size = 1, stroke = 1.5, cols = c("white", "red"))

Arguments

C

correlation matrix

size

plotting argument to geom_point()

stroke

plotting argument to geom_point()

cols

array of two colors for gradient

Details

Adjust size and stroke of points in the plot to fix look of plot depending on dimensions

Value

ggplot2 plot of correlation matrix

Examples

1
2
3
4
5
N = 1000
p = 100
X = matrix(rnorm(N*p), N,p)
C = cor(X)
plotCorrTriangle( C )

GabrielHoffman/pinnacle documentation built on May 3, 2019, 3:02 p.m.