對於顯示兩個參數Alcohol Consumption level
vs Annual Income of Family
的數據,我正在製作ggplot
。顯示位於GGplot中同一點上的點的密度
在圖的特定區域有很多數據點,所以我想要增加這些點的數量與其他數據點較少的區域相比較。我不知道在geom_point
的參數aes
中輸入什麼。
g <- ggplot(data = matpor, mapping = aes(AIncome, AConsumption))
g <- g + geom_point(data = matpor, aes())
g
嘗試geom_hexbin。 – Roland