The problem is that there are variables in your "mydata" that contain "0" Values. And for zero values, the logarithmic scaling of the y axis provides "-Inf"
log(0)
[1] -Inf
library(datasets)
data(airquality)
x <- airquality
boxplot(x, log="y")
x[1,1] <- 0
boxplot(x, log="y")
Warning message:
In plot.window(xlim = xlim, ylim = ylim, log = log, yaxs = pars$yaxs) :
nonfinite axis limits [GScale(-inf,2.52375,2, .); log=1]
x[(x == 0)] <- 1
boxplot(x, log="y")
And_R source
share