ggplot无法绘制最小点

时间:2014-10-16 10:40:54

标签: r ggplot2

我发现当使用scale_size_area绘制点时,当数据范围跨越多个量级时,省略最小点。由于在某处变为零而可能出现错误?

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")

enter image description here

1 个答案:

答案 0 :(得分:0)

这似乎是一个错误,因此我已经报告了它:https://github.com/hadley/ggplot2/issues/1022

相关问题