是因为语句qplot(x,binwidth=1)设置的条宽太大,改binwidth=0.5就可以正常显示了。
Rstudio==>Tools==>Install Pakages==>ggplot2==>install