casperyc wrote: > > ... Expression in lattice .... example > > hist(Q5[,i],main=expression(paste("t[",dof2,"]",sep="")))does not work >
dof=c(1,2,4,8,16,32) Q5=matrix(rt(100,dof),100,6,T,dimnames=list(NULL,dof)) par(mfcol=c(2,6)) for (i in 1:6){ dof2=dof[i] hist(Q5[,i],main=bquote(t[.(dof2)])) qqnorm(Q5[,i]) qqline(Q5[,i]) } See http://r-project.markmail.org/thread/ui3vztyvafyar76f -- View this message in context: http://r.789695.n4.nabble.com/how-to-use-paste-in-function-for-expression-tp3093822p3093835.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.