全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
6203 1
2018-09-13
如下所示代码:
qplot(x=cut, y=price, data = diamonds, fill=cut, geom = "bar",
      stat="summary", fun.y="mean")
出现以下错误:
Warning: Ignoring unknown parameters: fun.y
Error: stat_bin() must not be used with a y aesthetic.
In addition: Warning message:
`stat` is deprecated

有2点疑问:① 最近学习ggplot中,在qplot中stat=“identity”老是报错`stat` is deprecated
                   ②为什么人家的fun.y能跑出来,我这儿跑不出来
              
二维码

扫码加我 拉你入群

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

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

全部回复
2018-9-14 21:50:34
跳过qplot,直接用ggplot:
复制代码
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群