如下所示代码:
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能跑出来,我这儿跑不出来