[R] ggplot sub- and superscript for axis name

2010-08-31 Thread Benoit Boulinguiez
Hi all, For publication purpose, I require to label ggplot figures axes with sub- or superscript text. I tried several ways, but never worked so far, to mix character string, sub- or superscripting on it and even worse, mathematical symbols. Let say I want to write the LateX equivalent

Re: [R] ggplot sub- and superscript for axis name

2010-08-31 Thread David Winsemius
On Aug 31, 2010, at 9:29 AM, Benoit Boulinguiez wrote: Hi all, For publication purpose, I require to label ggplot figures axes with sub- or superscript text. I tried several ways, but never worked so far, to mix character string, sub- or superscripting on it and even worse, mathematical

Re: [R] ggplot sub- and superscript for axis name

2010-08-31 Thread Ista Zahn
Hi Ben, Since you already know LaTeX, I would go with what you know. Try p-p + scale_x_continuous(name='$\\gamma_{fi}$') library(tikzDevice) ## may too to install first tikz(file=foo.tex, standAlone=TRUE) print(p) dev.off() system(pdflatex foo.tex) Best, Ista On Tue, Aug 31, 2010 at 1:29 PM,