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!
boxplot(x, axes=F)
box(bty="l")
axis(2)
axis(1) #if you really want x-axis ticks here...
I think you need to use axis(side=1)
after plotting.
x <- 1:5
boxplot(x, frame.plot = FALSE)
axis(side = 1)
This gives
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With