I was trying to change the whiskers (upper &lower limits) of boxplots and was directed to boxplotperc()
in the StatDA
package. The data I'm using has missing values and works fine when using the regular boxplot()
However when I used the function (i.e. boxplotperc(x)
) I get the warning:
Error in quantile.default(x, quant) :
missing values and NaN's not allowed if 'na.rm' is FALSE`
I tried adding na.rm = TRUE
to the function, but the same error is returned. As a new user of R, my understanding of the above error is that "missing values" should be allowed, but clearly that is not correct.
Is there any advice on how to make boxplotperc()
work with missing data? Any help would be great. Thank you.