Use plot_correlation() to turn pairwise relationships in a data frame into a labeled correlation matrix, displayed as a heat map. It supports quick exploratory analysis before modeling. section 17.4.2
Compare betting totals with game scores
For the prepared NBA oddsdf3 data, plot_correlation(oddsdf3, type = "c") limits the heat map to continuous variables. The labels show coefficients, making it possible to compare relationships such as closetotal or opentotal with ptsR, ptsH, and ptsT. section 17.4.2
Key behaviors include:
- Defaults to including continuous and categorical variables in the correlation heat map. section 17.4.2
- Automatically ignores missing values while still generating the heat map. section 17.4.2
