| ggally_cor {GGally} | R Documentation |
Estimate correlation from the given data.
ggally_cor(data, mapping, alignPercent = 0.6, method = "pearson", use = "complete.obs", corAlignPercent = NULL, corMethod = NULL, corUse = NULL, ...)
data |
data set using |
mapping |
aesthetics being used |
alignPercent |
right align position of numbers. Default is 60 percent across the horizontal |
method |
|
use |
|
corAlignPercent |
deprecated. Use parameter |
corMethod |
deprecated. Use parameter |
corUse |
deprecated. Use parameter |
... |
other arguments being supplied to geom_text |
Barret Schloerke schloerke@gmail.com
data(tips, package = "reshape")
ggally_cor(tips, mapping = ggplot2::aes_string(x = "total_bill", y = "tip"))
ggally_cor(
tips,
mapping = ggplot2::aes(x = total_bill, y = tip),
size = 15,
colour = I("red")
)
ggally_cor(
tips,
mapping = ggplot2::aes_string(x = "total_bill", y = "tip", color = "sex"),
size = 5
)