Nov 14, 2019 in R Language
Q: Add control to the heat map in R language

1 Answer

0 votes
Nov 14, 2019

We can add more controls to the graph.

    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

+2 votes
Jul 28, 2019 in R Language