最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

r - setting `stat = 'sum'` inside of geom_point doesn’t seem to have any effect - Stack Overflow

programmeradmin2浏览0评论

This is my code:

ggplot(aes(year,gdpPercap),data = gapminder::gapminder) + 
          geom_point()
ggplot(aes(year,gdpPercap),data = gapminder::gapminder) + 
          geom_point(stat = 'sum')

Why the plot is almost the same? The only difference is that the dots are bigger.

But the plot should be different as I asked for the "sum" tranformation.

发布评论

评论列表(0)

  1. 暂无评论