I am trying to make a box plot with the following code
boxplot(depy ~ depx, outline = FALSE, ylim = c(-20,20))
which works fine
When I try to add a limit for the x-axis
boxplot(depy~depx,outline=FALSE,xlim=c(-10,10),ylim=c(-20,20))
I get this
which looks like it has a wrong scale and doesn't show the tick marks and axis labels outside the area with the plotted values.
Any help to fix this?