How to put black borders in heatmap in R

后端 未结 3 1987
清歌不尽
清歌不尽 2021-02-03 12:49

Hi I created a heatmap in R using \"heatmap.plus\" which is shown in the link

http://i.stack.imgur.com/hizBf.jpg

but I need the heat map to look like the heatma

3条回答
  •  无人共我
    2021-02-03 13:42

    If you follow the tutorial from Learn R blog and change the color in this paragraph to black, you will get:

    (p <- ggplot(nba.m, aes(variable, Name)) +
        geom_tile(aes(fill = rescale), colour = "black") +
        scale_fill_gradient(low = "white",high = "steelblue"))
    

    enter image description here

提交回复
热议问题