PDF 120 / 520 given by the count. That means if one of the groups is much smaller than the others, it's hard t
English · PDF 120
Original PDF page 120
中文 · PDF 120

由计数给出。这意味着如果其中一组远小于其他组,就很难看出形状上的差异。例如,让我们探索钻石的价格如何随其品质变化:

ggplot(data = diamonds, mapping = aes(x = price)) + geom_freqpoly(mapping = aes(color = cut), binwidth = 500)

很难看出分布上的差异,因为整体计数相差太大:

ggplot(diamonds) + geom_bar(mapping = aes(x = cut))