0
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)
如何在mtext中使用m的值?在直方圖上使用mtext中使用的plotmat中的變量的R中的R(
此鏈接here 建議兩種與text()一起使用但不在mtext()中的方式。
謝謝,即使行= 2'code:mtext(bquote(plain(「My Title(」)* hat(X)==。(m)* plain(「)」)),side = 3,line = 2,cex = 1,at = 14)' – user882096
請閱讀:http://stackoverflow.com/about –