I'd like to make axis titles, chart titles, legends and the like mathematically nice (e.g., have proper superscripts and subscripts, variables in italics, and so on). Ideally, one could go into ``math mode" a la LaTeX, and write something like plot(blah, xlab="Methane in $\mbox{cm}^3$ / g", blah). This is just an ideal, but it would be nice. Is some approximation of this functionality available in R (or indeed, in S Plus)? Thanks a lot, Steve Stephen R. Laniel | "Every time she sneezes Carnegie Mellon University | I believe it's love." laniel at cmu.edu | --Adam Duritz -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"Stephen R. Laniel" <laniel at cmu.edu> writes:> I'd like to make axis titles, chart titles, legends and the like > mathematically nice (e.g., have proper superscripts and subscripts, > variables in italics, and so on). Ideally, one could go into ``math mode" > a la LaTeX, and write something like > > plot(blah, xlab="Methane in $\mbox{cm}^3$ / g", blah). > > This is just an ideal, but it would be nice. Is some approximation of this > functionality available in R (or indeed, in S Plus)?Quite a good approximation to this is available in R in fact. You use the expression function to indicate you want to use a LaTeX-like language. Try example(text) in R to see some examples. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._