> p <- ggplot(m_rtn,aes(x=Month,y=Return))+
+ geom_bar()+
+ labs(title="Monthly Return")
> print(p)
出现如下警告,为啥呢?怎么破
Mapping a variable to y and also using stat="bin".
With stat="bin", it will attempt to set the y value to the count of cases in each group.
This can result in unexpected behavior and will not be allowed in a future version of ggplot2.
If you want y to represent counts of cases, use stat="bin" and don't map a variable to y.
If you want y to represent values in the data, use stat="identity".
See ?geom_bar for examples. (Deprecated; last used in version 0.9.2)
Warning message:
Stacking not well defined when ymin != 0


雷达卡





京公网安备 11010802022788号







