Here’s the code for an MRE:
rm(list = ls(all.names = TRUE))
library("GGally")
## Loading required package: ggplot2
## Loading required package: reshape
## Warning: replacing previous import by 'reshape::rename' when loading 'GGally'
## Warning: replacing previous import by 'reshape::round_any' when loading 'GGally'
# Basketball statistics provided by Nathan Yau at Flowing Data.
nba <- read.csv("http://datasets.flowingdata.com/ppg2008.csv")
# Custom options.
g <- ggcorr(
nba[,-1],
geom = "circle",
max_size = 6,
size = 3,
hjust = 0.75,
#angle = -45,
palette = "Accent"
) + labs(title = "Basic correlations plot")
And the result is not what I expected:
Here’s my R environment:
sessionInfo()
## R version 3.1.1 (2014-07-10)
## Platform: x86_64-pc-linux-gnu (64-bit)
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C
## [4] LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C
## [7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C
## [10] LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] GGally_0.4.4 reshape_0.8.5 ggplot2_1.0.0
##
## loaded via a namespace (and not attached):
## [1] MASS_7.3-34 RColorBrewer_1.0-5 Rcpp_0.11.1
## [4] colorspace_1.2-4 digest_0.6.4 evaluate_0.5.5
## [7] formatR_1.0 grid_3.1.1 gtable_0.1.2
## [10] htmltools_0.2.4 knitr_1.6 munsell_0.4.2
## [13] plyr_1.8.1 proto_0.3-10 reshape2_1.4
## [16] rmarkdown_0.2.49 scales_0.2.4 stringr_0.6.2
## [19] tools_3.1.1 yaml_2.1.13