Is a heatmap in “sized dot style” possible in ggplot2?

前端 未结 1 677
面向向阳花
面向向阳花 2021-01-20 15:02

Is it possible to draw a heatmap with circles instead of square in ggplot2? It would be neat to not only represent the values by a color gradient but also by the circle size

相关标签:
1条回答
  • 2021-01-20 15:32

    In this example size and colour both correspond with the variable value because it's the only variable numeric available in the kreuz.m dataset.

    ggplot(kreuz.m, aes(Name, variable)) +
      geom_point(aes(size = value, colour=value))
    
    0 讨论(0)
提交回复
热议问题