0 votes
in R Language by
Add control to the heat map in R language

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Nov 4, 2019 in R Language by MBarbieri
+3 votes
asked Jul 28, 2019 in R Language by Aarav2017
...