m <- mean(outcome[, 11], na.rm = TRUE)
hist(df[, 11], main = "",xlab="", ylab="", xlim = c(0,as.integer(range(df[,11], na.rm=TRUE))[-1]), axes = FALSE)
axis(side = 1, at = c(10,15,20))
axis(side = 2, at = c(0,200,400,600), labels=c(0,200,'',600),pos=c(as.integer(range(df[,23], na.rm=TRUE))[-2],0))
mtext(expression(paste(plain("My Title("), hat(X)== substitute(m) , plain(")"))), side=3, line= 2, cex = 1, at=14)
如何在多行文本中使用 m 的值?
此处的此链接 建议了两种适用于 text() 但不适用于 mtext() 的方法。