Hi, How can I generate lower case letters for my axis-titles? Thanks, J?rg
check: ?tolower() Best, Dimitris J?rg Gro? wrote:> Hi, > > How can I generate lower case letters for my axis-titles? > > > > Thanks, > J?rg > ______________________________________________ > 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. >-- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014
Oh, ok ... perhaps it was the wrong description; I want lowered cases... In LaTeX I get them with x_1 for example. Or x^2 for upper cases. But how can I make this in R? Am 24.09.2008 um 16:17 schrieb Dimitris Rizopoulos:> check: > > ?tolower() > > > Best, > Dimitris > > > J?rg Gro? wrote: >> Hi, >> How can I generate lower case letters for my axis-titles? >> Thanks, >> J?rg >> ______________________________________________ >> 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. > > -- > Dimitris Rizopoulos > Assistant Professor > Department of Biostatistics > Erasmus Medical Center > > Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands > Tel: +31/(0)10/7043478 > Fax: +31/(0)10/7043014
An example would help. You generally control the titles using arguments like main, xlab, ylab, sub in the plotting functions or afterwards using title() function. You can get the upper/lower case using toupper()/tolower() functions. See help(par), help(title), help(tolower). Here is an example: string <- "My x-axis corresponding to something" plot( rnorm(10), xlab=toupper(string) ) Regards, Adai J?rg Gro? wrote:> Hi, > > How can I generate lower case letters for my axis-titles? > > > > Thanks, > J?rg > ______________________________________________ > 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.
so you mean subscripts and superscripts, then check: ?plotmath Best, Dimitris J?rg Gro? wrote:> Oh, ok ... > > perhaps it was the wrong description; > > I want lowered cases... > In LaTeX I get them with x_1 for example. > Or x^2 for upper cases. > > But how can I make this in R? > > > Am 24.09.2008 um 16:17 schrieb Dimitris Rizopoulos: > >> check: >> >> ?tolower() >> >> >> Best, >> Dimitris >> >> >> J?rg Gro? wrote: >>> Hi, >>> How can I generate lower case letters for my axis-titles? >>> Thanks, >>> J?rg >>> ______________________________________________ >>> 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. >> >> -- >> Dimitris Rizopoulos >> Assistant Professor >> Department of Biostatistics >> Erasmus Medical Center >> >> Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands >> Tel: +31/(0)10/7043478 >> Fax: +31/(0)10/7043014 > > ______________________________________________ > 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. >-- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014
Great thanks and sorry for my bad english! Am 24.09.2008 um 16:32 schrieb Dimitris Rizopoulos:> so you mean subscripts and superscripts, then check: > > ?plotmath > > > Best, > Dimitris > > > J?rg Gro? wrote: >> Oh, ok ... >> perhaps it was the wrong description; >> I want lowered cases... >> In LaTeX I get them with x_1 for example. >> Or x^2 for upper cases. >> But how can I make this in R? >> Am 24.09.2008 um 16:17 schrieb Dimitris Rizopoulos: >>> check: >>> >>> ?tolower() >>> >>> >>> Best, >>> Dimitris >>> >>> >>> J?rg Gro? wrote: >>>> Hi, >>>> How can I generate lower case letters for my axis-titles? >>>> Thanks, >>>> J?rg >>>> ______________________________________________ >>>> 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. >>> >>> -- >>> Dimitris Rizopoulos >>> Assistant Professor >>> Department of Biostatistics >>> Erasmus Medical Center >>> >>> Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands >>> Tel: +31/(0)10/7043478 >>> Fax: +31/(0)10/7043014 >> ______________________________________________ >> 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. > > -- > Dimitris Rizopoulos > Assistant Professor > Department of Biostatistics > Erasmus Medical Center > > Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands > Tel: +31/(0)10/7043478 > Fax: +31/(0)10/7043014