99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2019-02-20 閱讀量: 2139
多組數(shù)據(jù)的直方圖與密度圖的繪制方法

  1. # 疊加直方圖
  2. ggplot(dat, aes(x=rating, fill=cond)) +
  3. ? ? geom_histogram(binwidth=.5, alpha=.5, position="identity")

  4. # 交錯(cuò)直方圖
  5. ggplot(dat, aes(x=rating, fill=cond)) +
  6. ? ? geom_histogram(binwidth=.5, position="dodge")

  7. # 密度圖
  8. ggplot(dat, aes(x=rating, colour=cond)) + geom_density()

  9. # 帶半透明填充的密度圖
  10. ggplot(dat, aes(x=rating, fill=cond)) + geom_density(alpha=.3)


7.png
8.png
9.png
10.png
0.0000
1
關(guān)注作者
收藏
評(píng)論(0)

發(fā)表評(píng)論

暫無(wú)數(shù)據(jù)
推薦帖子