powered by
Correlation Covariance Heatmap
covcor_heat( matrix, corr = TRUE, size = 4, digits = 3, legend = c(0.6, 0.7), upper_tri = FALSE, reorder = FALSE )
A ggplot object showing the upper triangular elements of the matrix.
A numeric matrix.
A logical value indicating if the matrix is in a scaled form (TRUE by default, correlation matrix)
TRUE
A numeric value to define the letter size.
A numeric integer to define the number of digits to plot.
the position of legends ("none", "left", "right", "bottom", "top", or two-element numeric vector)
A logical value to plot the Lower or Upper Triangular Part of the matrix. FALSE by default.
A logical value to reorder by a Hierarchical Clustering. FALSE by default.
library(agriutilities) data(iris) M <- cor(iris[, -5]) covcor_heat(matrix = M, corr = TRUE)
Run the code above in your browser using DataLab