楼主: harry_d
21869 1

[问题求助] R语言中ggplot2中stat=“identity”什么意思啊 [推广有奖]

  • 0关注
  • 0粉丝

初中生

95%

还不是VIP/贵宾

-

威望
0
论坛币
3 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
542 点
帖子
11
精华
0
在线时间
12 小时
注册时间
2016-7-13
最后登录
2023-5-19

楼主
harry_d 发表于 2017-5-22 10:14:11 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
R语言中ggplot2中stat=“identity”什么意思啊,R语言小白一个,求解析
二维码

扫码加我 拉你入群

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

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

关键词:Identity ggplot2 Identi entity gplot 统计

沙发
jlwjlwjlw 发表于 2017-5-23 17:00:57
“绘图函数里的stat参数表示对样本点做统计的方式,默认为identity,表示一个x对应一个y,同时还可以是bin,表示一个x对应落到该x的样本数。”说白了就是,identity提取横坐标x对应的y值,bin提取横坐标x的频数。
资料来源:http://www.cnblogs.com/muchen/p/5279727.html
下面是R帮助中的说明:
“If you have presummarised data, use <code>stat="identity" to turn off the default summary. Sometimes, bar charts are used not as a distributional summary, but instead of a dotplot. Generally, it's preferable to use a dotplot (see geom\_point) as it has a better data-ink ratio. However, if you do want to create this type of plot, you can set y to the value you have calculated, and use stat='identity'.”
资料来源:http://127.0.0.1:10246/library/ggplot2/html/geom_bar.html

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

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-4 13:19