R Scatter Plot: symbol color represents number of overlapping points

前端 未结 3 1642
暖寄归人
暖寄归人 2020-12-01 02:23

Scatter plots can be hard to interpret when many points overlap, as such overlapping obscures the density of data in a particular region. One solution is to use semi-transp

3条回答
  •  春和景丽
    2020-12-01 03:00

    You can get a similar effect by doing hexagonal binning, divide the region into hexagons, color each hexagon based on the number of points in the hexagon. The hexbin package has functions to do this and there are also functions in the ggplot2 package.

提交回复
热议问题