Skip to content
/ ggplot2 Public
  • Notifications You must be signed in to change notification settings
  • Fork 2k
  • Star 6.4k
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to bottom

Documentation of geom_bar: aesthetics "weight" is not mentioned #2995

Closed
jarauh opened this issue Nov 13, 2018 · 7 comments
Closed

Documentation of geom_bar: aesthetics "weight" is not mentioned #2995

jarauh opened this issue Nov 13, 2018 · 7 comments
Labels
documentation tidy-dev-day 馃 Tidyverse Developer Day rstd.io/tidy-dev-day

Comments

@jarauh
Copy link

jarauh commented Nov 13, 2018

The documentation of geom_bar states that the following aesthetics are understood:
x, y, alpha, colour, fill, group, linetype, size.
The aesthetics "weight" is not in this list, although it is quite important.

@batpigandme batpigandme added the documentation label Nov 13, 2018
@ptoche
Copy link

ptoche commented Nov 13, 2018

From geom-bar.r, the following info:

geom_bar is designed to make it easy to create bar charts that show counts (or sums of weights).

Example:

ggplot(mpg, aes(class)) +
    geom_bar(aes(weight = displ))

appears to work.

@thomasp85
Copy link
Member

thomasp85 commented Nov 13, 2018

weight is an aesthetic pertaining to stat_count() which is what geom_bar() uses by default. Stating that geom_bar() understands it would be untrue, as it will not work with any other statistic

@thomasp85 thomasp85 closed this as completed Nov 13, 2018
@jarauh
Copy link
Author

jarauh commented Nov 15, 2018

Ok, I understand your point. Two remarks:

  1. To me, the sentence "geom_bar understands the following aesthetics" meant that no other aesthetics are understood. Maybe a sentence like "In addition, aesthetics are passed on to the stat specified by argument stat." would help. (Of course, such a sentence might also be relevant for other geom's).
  2. The documentation page of geom_bar is at the same time the documentation page of stat_count. Thus, the same page would be the perfect place to list the aesthetics that stat_count understands. Where else can one get the information that stat_count understands weight in the documentation (and what it does with it)?

@thomasp85
Copy link
Member

thomasp85 commented Nov 15, 2018

Oh - I missed that stat_count is documented the same place - in that case it should of course be included. Thanks for pointing that out

@thomasp85 thomasp85 reopened this Nov 15, 2018
@karawoo karawoo added the tidy-dev-day 馃 Tidyverse Developer Day rstd.io/tidy-dev-day label Jan 7, 2019
@amysheep
Copy link
Contributor

amysheep commented Jan 19, 2019

I'm on it.

@amysheep amysheep mentioned this issue Jan 19, 2019
Documentation for geom_bar #3080
Merged
@karawoo
Copy link
Member

karawoo commented Jan 19, 2019

Closed in #3080

@karawoo karawoo closed this as completed Jan 19, 2019
@lock
Copy link

lock bot commented Jul 18, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Jul 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation tidy-dev-day 馃 Tidyverse Developer Day rstd.io/tidy-dev-day
Projects
None yet
Development

No branches or pull requests

6 participants
@batpigandme @thomasp85 @karawoo @ptoche @amysheep @jarauh

Footer

© 2024 GitHub, Inc.

4617作文网先锋软件双胞胎男孩起名名字大全起宝宝的小名龙马精神1518公司起名打分结果论语起少女名字工商起名字规定起个韩国的服装店名只管向前奔跑阅读答案女孩起名字美好寓意的字pkpm破解版下载令人神往起名字女孩大全雅典娜是什么神卡酷少儿临沂金属网霍元甲电影下载2021年男孩起名字大全免费精明的意思微微一笑很倾城电视剧演员表项目风险管理温柔到爆的神仙作文孤堡惊魂暗香盈袖寂静之地百度云盘免费婴儿起名字生辰八字起名qusese不可撤销下载汤博乐各大银行的理财产品淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻让美丽中国“从细节出发”清明节放假3天调休1天男子给前妻转账 现任妻子起诉要回网友建议重庆地铁不准乘客携带菜筐月嫂回应掌掴婴儿是在赶虫子重庆警方辟谣“男子杀人焚尸”国产伟哥去年销售近13亿新的一天从800个哈欠开始男孩疑遭霸凌 家长讨说法被踢出群高中生被打伤下体休学 邯郸通报男子持台球杆殴打2名女店员被抓19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警两大学生合买彩票中奖一人不认账德国打算提及普京时仅用姓名山西省委原副书记商黎光被逮捕武汉大学樱花即将进入盛花期今日春分张家界的山上“长”满了韩国人?特朗普谈“凯特王妃P图照”王树国3次鞠躬告别西交大师生白宫:哈马斯三号人物被杀代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了房客欠租失踪 房东直发愁倪萍分享减重40斤方法“重生之我在北大当嫡校长”槽头肉企业被曝光前生意红火手机成瘾是影响睡眠质量重要因素考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼网友洛杉矶偶遇贾玲呼北高速交通事故已致14人死亡西双版纳热带植物园回应蜉蝣大爆发男孩8年未见母亲被告知被遗忘张立群任西安交通大学校长恒大被罚41.75亿到底怎么缴沈阳一轿车冲入人行道致3死2伤奥运男篮美国塞尔维亚同组周杰伦一审败诉网易国标起草人:淀粉肠是低配版火腿肠外国人感慨凌晨的中国很安全男子被流浪猫绊倒 投喂者赔24万杨倩无缘巴黎奥运男子被猫抓伤后确诊“猫抓病”春分“立蛋”成功率更高?记者:伊万改变了国足氛围奥巴马现身唐宁街 黑色着装引猜测

4617作文网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化