Below is my dataframe
df
a b c d
1 0 0 0 0
2 0 0 0 1
3 0 0 0 0
4 0 1 0 0
Here is the code which generated heatmap. It uses the library highcharter in R.
hchart(as.matrix(df), "heatmap", hcaes(x = variable, y = name, value = value)) %>% hc_colorAxis(stops = color_stops(2, c("yellow","blue")))%>%hc_size(height = 500)
My question is, how can I change color of the values/numbers that are being displayed in the heatmap. OR, how do I remove the values from heatmap?
You may just change your code as following one:
Load your data:
Then, produce the heatmap and change the color modifyng
color_stops
argument:Here is the result: