visualize.correlation.matrix: Plot correlation matrix

Description Usage Arguments Value Examples

View source: R/metrics.R

Description

Plot correlation matrix

Usage

1
2
3
4
5
visualize.correlation.matrix(
  cor.df,
  file = "None",
  colors = c("#DEB841", "white", "#267278")
)

Arguments

cor.df

a data.frame representing correlation matrix

file

In case of x been a data.frame or matrix, represent the name of output file for saving mutual information plot.

colors

gradiente colors

Value

Plot correlation matrix

Examples

1
2
3
4
5
df <- data.frame("V1" = sample.int(3000,100,replace=FALSE), "V2" =sample.int(3000,100,replace=FALSE) , "V3" = sample.int(3000,100,replace=FALSE), "V4" = sample.int(3000,100,replace=FALSE),  "V5" = sample.int(3000,100,replace=FALSE), "V6" = sample.int(3000,100,replace=FALSE), "V7" = sample.int(3000,100,replace=FALSE), "V8" = sample.int(3000,100,replace=FALSE))
pearson.cor <- correlation(x = df, method = "Pearson")
visualize.correlation.matrix(cor.df = pearson.cor)
visualize.correlation.matrix(cor.df = pearson.cor, file = "pearsonCor")
visualize.correlation.matrix(cor.df = pearson.cor, file = "pearsonCor", colors = c("Blue", "White", "Green"))

AnderEhu/sme documentation built on Jan. 31, 2022, 12:01 a.m.