[R] How to reduce the (whitespace) gap between boxplots
Neha gupta
neh@@bo|ogn@90 @end|ng |rom gm@||@com
Sun Jul 17 21:05:29 CEST 2022
Hi
I have the following code to display boxplots. The problem is it has a wide
space (gap) between them which takes a lot of space on paper. How can I
reduce the size so that it takes less time in a word document.
RF= c(81.8, 81.8, 42.8, 42.8, 100, 53.8)
Ranger= c(66.6, 81.8, 81.8, 33.3, 81.8, 53.8)
SVM= c(81.8, 66.6, 81.8, 53.8, 81.8, 66.6 )
knn= c(17.64, 33.33, 42.8, 25, 53.84, 17.64)
DT= c(33.3 , 66.6, 33.3, 66.6, 33.3, 25)
colors = rep("green",6)
at.x <- seq(1,by=.4, length.out = 10)
boxplot(RF,Ranger, SVM, KNN, DT, range = 0, boxwex = 0.2, col=colors,
names= c("RF","Ranger", "SVM", "KNN", "DT"),main="Degree of consistency
with default and optimized settings")
[[alternative HTML version deleted]]
More information about the R-help
mailing list