[R] Supperscript, subscript and double lines in the main/subtitle and using greekletters
Gerrit Eichner
Gerrit.Eichner at math.uni-giessen.de
Tue Mar 27 15:39:00 CEST 2012
Hi, HJ,
see
?plotmath
Hth -- Gerrit
---------------------------------------------------------------------
Dr. Gerrit Eichner Mathematical Institute, Room 212
gerrit.eichner at math.uni-giessen.de Justus-Liebig-University Giessen
Tel: +49-(0)641-99-32104 Arndtstr. 2, 35392 Giessen, Germany
Fax: +49-(0)641-99-32109 http://www.uni-giessen.de/cms/eichner
---------------------------------------------------------------------
On Tue, 27 Mar 2012, HJ YAN wrote:
> Dear R-help,
>
> I am trying to express myself as best as I can here. If you also use Latex
> to edit math reports or other languages with similar editing method,
> you'll see what I'm talking about. My sincere appologies if my question is
> not clear enough to some extend, as also I'm not able to provide my code
> here because I don`t know which one I can use...
>
> When editing the title in R plots, such as using 'plot', or 'xyplot' in
> 'lattic', what method do you use to write greek letters and make use of
> superscript and subscript, e.g. to write mathematical expressions like
> using Latex:
>
> \sigma^2
> \tau^{2s}
> \mu_i
> \pi_{2s}
>
> Also I would like to learn how to make two lines in the main title or sub
> title if the text I need it too long for putting in a single line, e.g. are
> there some R code/syntax allowing me to do something like in Latex to make
> two lines in the title, for example using '//' or '\\' to seperate the two
> parts of the text I want to put in two lines??
>
> I heard about using something like
>
> plot(x,y, main=expression(....))
>
> but from neither '?plot' or '?expression' could I find comprehensive
> information about what I need...
>
> Many thanks!
> HJ
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list