【发布时间】:2016-06-16 07:11:00
【问题描述】:
是否可以让它显示组内密度而不是计数?
library(ggplot2);data(diamonds)
ggplot(diamonds, aes(carat, depth)) +
stat_bin2d(bins=40)+ facet_wrap(~color)
这将使比较各组之间的模式变得更加容易,因为某些组可能自然而然地出现得更多。
这个问题有点类似于:How to scale (normalise) values of ggplot2 stat_bin2d within each column (by X axis),它也没有答案。
【问题讨论】: