Does anyone know how to remove the top and right borders of the boxplot frame in R? I have tried the argument frame=FALSE but that removes all sides but the left side(y-axis). I just want the x-axis and y-axis to display.
Thanks in advance!
I think you need to use axis(side=1)
after plotting.
x <- 1:5
boxplot(x, frame.plot = FALSE)
axis(side = 1)
This gives