楼主: coinii
10772 2

[问答] 初学R 请问geom_col()和geom_bar()这两个函数有什么区别? [推广有奖]

  • 0关注
  • 0粉丝

高中生

15%

还不是VIP/贵宾

-

威望
0
论坛币
10 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
338 点
帖子
10
精华
0
在线时间
29 小时
注册时间
2017-11-4
最后登录
2019-3-24

楼主
coinii 发表于 2018-9-25 23:57:17 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
求解答
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:GEO EOM bar 求解答

沙发
cheetahfly 在职认证  发表于 2018-9-26 08:16:37
There are two types of bar charts: geom_bar makes the height of the bar proportional to the number of cases in each group (or if the weight aesthetic is supplied, the sum of the weights). If you want the heights of the bars to represent values in the data, use geom_col instead. geom_bar uses stat_count by default: it counts the number of cases at each x position. geom_col uses stat_identity: it leaves the data as is.
geom_bar自带统计属性

藤椅
啊啊啊啊啊吖 发表于 2018-9-28 09:42:22
学习一波了~~~~

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-21 20:16