Skip to main content
The disordered modes (0, 1, -3) were bugging me.
Source Link

There are multiple options for detecting multimodality with R. Data for the below charts was generated with three modes (-3,0,1,-3). The boxplot is clearly outperformed by the others (the violin plot looks like it has different default kernalkernel density settings), but none really distinguish between the 0 and 1 modes. There are really few reasons to use boxplots anymore in the computer age. Why throw out information?

enter image description here

dat<dat <- c(rnorm(200500,0 -3, 1), rnorm(300200,1 0, 1), rnorm(500300,-3 1, 1))

par(mfrow=c(2, 2))
boxplot(dat, horizontal=Thorizontal=TRUE, main="Boxplot")

require(beanplot)
beanplot(dat, horizontal=Thorizontal=TRUE, main="Beanplot")

require(viopoints)
viopoints(dat, horizontal=Thorizontal=TRUE, main="Viopoints")

require(vioplot)
vioplot(dat, horizontal=Thorizontal=TRUE)
title("Violin Plot")

There are multiple options for detecting multimodality with R. Data for the below charts was generated with three modes (0,1,-3). The boxplot is clearly outperformed by the others (the violin plot looks like it has different default kernal density settings), but none really distinguish between the 0 and 1 modes. There are really few reasons to use boxplots anymore in the computer age. Why throw out information?

enter image description here

dat<-c(rnorm(200,0,1),rnorm(300,1,1),rnorm(500,-3,1))

par(mfrow=c(2,2))
boxplot(dat, horizontal=T, main="Boxplot")

require(beanplot)
beanplot(dat, horizontal=T, main="Beanplot")

require(viopoints)
viopoints(dat, horizontal=T, main="Viopoints")

require(vioplot)
vioplot(dat, horizontal=T)
title("Violin Plot")

There are multiple options for detecting multimodality with R. Data for the below charts was generated with three modes (-3,0,1). The boxplot is clearly outperformed by the others (the violin plot looks like it has different default kernel density settings), but none really distinguish between the 0 and 1 modes. There are really few reasons to use boxplots anymore in the computer age. Why throw out information?

enter image description here

dat <- c(rnorm(500, -3, 1), rnorm(200, 0, 1), rnorm(300, 1, 1))

par(mfrow=c(2, 2))
boxplot(dat, horizontal=TRUE, main="Boxplot")

require(beanplot)
beanplot(dat, horizontal=TRUE, main="Beanplot")

require(viopoints)
viopoints(dat, horizontal=TRUE, main="Viopoints")

require(vioplot)
vioplot(dat, horizontal=TRUE)
title("Violin Plot")
Source Link
Livid
  • 1.2k
  • 7
  • 16

There are multiple options for detecting multimodality with R. Data for the below charts was generated with three modes (0,1,-3). The boxplot is clearly outperformed by the others (the violin plot looks like it has different default kernal density settings), but none really distinguish between the 0 and 1 modes. There are really few reasons to use boxplots anymore in the computer age. Why throw out information?

enter image description here

dat<-c(rnorm(200,0,1),rnorm(300,1,1),rnorm(500,-3,1))

par(mfrow=c(2,2))
boxplot(dat, horizontal=T, main="Boxplot")

require(beanplot)
beanplot(dat, horizontal=T, main="Beanplot")

require(viopoints)
viopoints(dat, horizontal=T, main="Viopoints")

require(vioplot)
vioplot(dat, horizontal=T)
title("Violin Plot")