geom_corr | R Documentation |
This function can be used to add corrlation marker on a pairs plot.
geom_corr(
mapping = NULL,
data = NULL,
stat = "identity",
position = "lc",
...,
method = "pearson",
contain_all = TRUE,
digits = 2,
nsmall = 2,
nudge_x = NULL,
nudge_y = NULL,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this
layer, either as a |
position |
position of correlation marker. |
... |
other parameters passed to layer function. |
method |
method of correlation. |
contain_all |
logical, if FALSE will contain each group marker only. |
digits, nsmall |
a positive integer to format correlation. |
nudge_x, nudge_y |
horizontal and vertical adjustment to nudge labels by. |
na.rm |
if FALSE, the default, missing values are removed with a warning, and if TRUE, missing values are silently removed. |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
a layer object.
Hou Yun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.