qcorrplot | R Documentation |
Init Correlation Plot This functions can be used to visualize simply and directly a correlation matrix.
qcorrplot(data, ...)
## S3 method for class 'cor_md_tbl'
qcorrplot(
data,
mapping = NULL,
drop = FALSE,
parse = FALSE,
grid_col = "grey50",
grid_size = 0.25,
fixed = TRUE,
facets = list(),
facets_order = NULL,
use_md,
...
)
## Default S3 method:
qcorrplot(
data,
mapping = NULL,
drop = FALSE,
parse = FALSE,
grid_col = "grey50",
grid_size = 0.25,
fixed = TRUE,
facets = list(),
facets_order = NULL,
use_md,
...
)
data |
one of 'correlate', 'rcorr' or 'corr.test' object. |
... |
other parameters. |
mapping |
default list of aesthetic mappings to use for plot. |
drop |
logical, if TRUE will drop unused axis labels. |
parse |
logical or function generated by |
grid_col |
colour of panel grid. |
grid_size |
size of panel grid. |
fixed |
if TRUE (default), will add |
facets |
NULL or a parameters list of |
facets_order |
character vector to set the order of facet panels. |
use_md |
deprecated. |
a gg object.
Hou Yun
### type = "full"
qcorrplot(correlate(mtcars)) +
geom_square()
### type = "lower"
qcorrplot(correlate(mtcars), type = "lower") +
geom_square()
### type = "upper"
qcorrplot(correlate(mtcars), type = "upper") +
geom_square()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.