Dear friends - I find it difficult to get formatting right when
expressions are made on several lines. Sorry not to find the right
documentation.
R version 3.2.1 Windows 7
(pHi <- seq(1,8))
#This gets formatted well but I want subscript for 2 in pCO2
plot(pHi,type="s",axes=FALSE,xlab="",lwd=4,
main=paste("Theoretical experiment using SID = 0.13 M\n"," ATOT = 0.2 M,
pKa = 6.8, and pCO[2] = 40"))
#but this gets a very unhelpful format
plot(pHi,type="s",axes=FALSE,xlab="",lwd=4,
main=expression(paste("Theoretical experiment using ", pCO[2], "= 40,
SID = 0.13 M\n"," ATOT = 0.2 M, and pKa = 6.8",
)))
All best wishes
Troels
Aalborg
Denmark
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.