| ggcorrplot | R Documentation |
Visualize a correlation matrix
ggcorrplot(
corr,
method = c("circle", "square", "ellipse", "number"),
type = c("full", "lower", "upper"),
p.mat = NULL,
col = NULL,
sig.lvl = 0.05,
number.digits = 2,
show.diag = TRUE,
insig = c("pch", "blank", "label_sig"),
pch = 4,
pch.cex = 5
)
corr |
a correlation matrix to be visualized |
method |
a character indicating the visualization method of correlation matrix to be used. Currently, it supports four methods, named |
type |
a character indicating that the |
p.mat |
a matrix of p-value |
col |
a vector of the colors to be used, which are distributed uniformly from -1 to 1. If NULL, col will be set to |
sig.lvl |
a numeric vector specifying significant level(s). If the p-value in |
number.digits |
the number of decimal digits (2 by default) while the visualization method is |
show.diag |
a logical indicating whether display the correlation coefficients on the principal diagonal. |
insig |
a character specialized insignificant correlation coefficients, |
pch |
a point character indicating the shape of insignificant correlation coefficients. |
pch.cex |
a number controlling the shape size of insignificant correlation coefficients. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.