lattice包中的箱图

bwplot(Species~Petal.Length,data=iris)

R语言可视化之箱图

拓展:分位箱图

library(Hmisc)
bwplot(Species~Petal.Length,data=iris,panel=panel.bpplot,probs=seq(0.01,0.49,by=0.01),datadensity=T)

datadensity的作用是添加小提琴中的小竖线

probs的作用是更细化小提琴的外边界

 R语言可视化之箱图 

#将连续变量离散化
Sepal.Len=equal.count(na.omit(iris$Sepal.Length),number=4,overlap=1/5)
stripplot(Species~Petal.Length|Sepal.Len,data=iris)

R语言可视化之箱图

 

相关文章:

  • 2021-12-10
  • 2021-11-29
  • 2021-06-05
  • 2021-12-02
  • 2021-11-21
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-13
  • 2021-11-14
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
相关资源
相似解决方案