The beanplot function keeps showing me this error:
Warning message:
In max(unlist(dens["y", ])) :
no non-missing arguments to max; returning -Inf
It has been working fine up until now. I'm really new at R, and I've been trying to work out what the problem is, but no luck so far. Any suggestions?
This is my code:
> data$Treat <- factor(data$Treat, levels = c("Parthenogenetic", "Monoandrous", "Polyandrous"))
> beanplot(Mort~Treat, data=data, col=list("firebrick", "deepskyblue3", "chartreuse4"),
+ ylab="Number of days", xlab="Reproductive mode",
+ las=1, ylim=c(0,80), cutmin = -Inf, cutmax = Inf, log="")