Re: [R] Change font-face in title

From: jim holtman <jholtman_at_gmail.com>
Date: Sat, 19 Jul 2008 11:58:10 -0400

Is this what you want:

plot(0,main=expression(paste("test ", italic("italic"), " and more")))

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.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
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.
Received on Sat 19 Jul 2008 - 16:00:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 19 Jul 2008 - 17:32:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive