autoplot.cor_df {corrr} | R Documentation |
Create a correlation matrix from a cor_df object
Description
This method provides a good first visualization of the correlation matrix.
Usage
## S3 method for class 'cor_df'
autoplot(
object,
...,
method = "PCA",
triangular = c("upper", "lower", "full"),
barheight = 20,
low = "#B2182B",
mid = "#F1F1F1",
high = "#2166AC"
)
Arguments
object |
A |
... |
this argument is ignored. |
method |
String specifying the arrangement (clustering) method.
Clustering is achieved via |
triangular |
Which part of the correlation matrix should be shown?
Must be one of |
barheight |
A single, non-negative number. Is passed to
|
low |
A single color. Is passed to |
mid |
A single color. Is passed to |
high |
A single color. Is passed to |
Value
A ggplot object
Examples
x <- correlate(mtcars)
autoplot(x)
autoplot(x, triangular = "lower")
autoplot(x, triangular = "full")