[R] Gap between plots, how to reduce
Neha gupta
neh@@bo|ogn@90 @end|ng |rom gm@||@com
Tue Sep 13 06:58:38 CEST 2022
Hi
There is a gap between plots (white spaces) when I draw the boxplot. I want
to reduce the spaces between the plots so that the boxplot takes a small
space. When I just adjust "boxwex" values, the length of individual plots
increases/decreases but the white spaces is still there.
My code:
RF= c(100,100,100,33.3,100,100)
Ranger= c(66.6, 100, 100, 33.3, 100, 81.8)
SVM= c(81.8, 100, 100, 66.6, 81.8, 81.8)
KNN= c(33.3, 25, 53.8, 25, 11.1, 5.2)
DT= c(100, 100, 100, 25, 100, 100)
mean(DT)
colors = rep("green",6)
at.x <- seq(1,by=.4, length.out = 10)
boxplot(RF,Ranger, SVM, KNN, DT, range = 0, boxwex=0.4,col=colors, names=
c("RF","Ranger", "SVM", "KNN", "DT"),main="Consistent features with 10-fold
vs LOO ")
[[alternative HTML version deleted]]
More information about the R-help
mailing list