6
當使用scale_size_area
繪製點時,我發現當數據跨幾個量級時,最小點被省略。由於四捨五入成爲零的可能的錯誤?ggplot無法繪製最小點
require(ggplot2)
d = data.frame(x=1:4, y=rep(1,4), v=10^(1:4))
ggplot(d, aes(x, y, size=v)) + geom_point() +
geom_text(aes(label = v), size=2, col='red') +
scale_size_area(max_size = 50) +
theme(legend.position = "none")
如果增加'max_size'到例如500 - 你可以看到點不見了 – geotheory 2014-10-16 10:58:08