Categories

Nov 14, 2019 in R Language

Q: Add control to the heat map in R language

1 Answer

Nov 14, 2019

We can add more controls to the graph.

ggcorr(data,
    nbreaks = 6,
    low = "steelblue",
    mid = "white",
    high = "darkred",
    geom = "circle")

Code Explanation

  • nbreaks=6: break the legend with 6 ranks.
  • low = "steelblue": Use lighter colors for negative correlation
  • mid = "white": Use white colors for middle ranges correlation
  • high = "darkred": Use dark colors for positive correlation
  • geom = "circle": Use circle as the shape of the windows in the heat map. The size of the circle is proportional to the absolute value of the correlation.
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Jul 28, 2019 in R Language
Jul 28, 2019 in R Language
Jul 28, 2019 in R Language
...