| ggally_cor {GGally} | R Documentation |
Estimate correlation from the given data.
ggally_cor(data, mapping, corAlignPercent = 0.6, corMethod = "pearson", corUse = "complete.obs", ...)
data |
data set using |
mapping |
aesthetics being used |
corAlignPercent |
right align position of numbers. Default is 60 percent across the horizontal |
corMethod |
|
corUse |
|
... |
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_string(x = "total_bill", y = "tip", size = 15, colour = "red") ) ggally_cor( tips, mapping = ggplot2::aes_string(x = "total_bill", y = "tip", color = "sex"), size = 5 )