[Rd] Expressions from boxplot() passed to bxp()

Marius Hofert m@r|u@@ho|ert @end|ng |rom uw@ter|oo@c@
Fri Mar 27 02:55:24 CET 2020


Hi,

Is this expected behavior (R-3.6.0)?

dat <- cbind(x = 1:10, y = 10:1)
ylab <- substitute(X[t], list(t = 2))
plot(dat, ylab = ylab) # works (correctly displays ylab)
boxplot(dat, ylab = ylab) # fails
boxplot(dat, ylab = as.expression(ylab)) # works

Thanks & cheers,
M



More information about the R-devel mailing list