[R] Change font-face in title

Gabor Grothendieck ggrothendieck at gmail.com
Sat Jul 19 17:59:19 CEST 2008


Or this which looks slightly better:

plot(1, type="l", xlab="Wellenlänge [nm]", col="darkslategray",
      main = ~ Spektrum ~ italic("Deschampsia caespitosa"))


On Sat, Jul 19, 2008 at 11:56 AM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> Try this:
>
> plot(1, type="l", xlab="Wellenlänge [nm]", col="darkslategray",
>     main = ~ Spektrum ~ italic(Deschampsia ~ caespitosa))
>
> On Sat, Jul 19, 2008 at 11:31 AM, Albin Blaschka
> <albin.blaschka at standortsanalyse.net> wrote:
>>
>>
>> Dear List,
>>
>> Is there a possibility to change the font-face for a part of the title of a
>> plot?
>>
>> For example I have the following...
>>
>> plot(nirs, type="l", xlab="Wellenlänge [nm]", col="darkslategray",
>>   main = "Spektrum Deschampsia caespitosa")
>>
>> ...and I would like to change the part of the title-string "Deschampsia
>> caespitosa" to italics? Is that possible? If yes, how?
>>
>> The only possibility which came to my mind was "tricking" with the subtitle
>> or with using text()...but that would be ugly...
>>
>> System: Both Linux and Windows, R-Version 2.7.1
>>
>> Thanks in advance,
>> Albin Blaschka
>>
>> --
>> ---------------------------------------------------------------------
>> | Albin Blaschka, Mag. rer.nat - Salzburg, Austria
>> | http://www.albinblaschka.info   http://www.thinkanimal.info
>> | It's hard to live in the mountains, hard, but not hopeless!
>>
>> ______________________________________________
>> 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