plot-function: How to change the font of the titles

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

plot-function: How to change the font of the titles

paladini
Hello!
I want to create a plot with x- and y-labels writen in times or arial.
How can I change the font?

Thank you very much. Best regards

Claudia

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: plot-function: How to change the font of the titles

Brian Ripley
On Wed, 1 Feb 2006 [hidden email] wrote:

> Hello!
> I want to create a plot with x- and y-labels writen in times or arial.
> How can I change the font?

Well, is it `titles' (subject) or `x- and y-labels', and if the latter do
you mean 'labels' (as in axis) or 'xlab' (as in title)?

Do you want some or all of the annotation in Times or Arial, or some in
each.  (On devices which support Arial it is the default.)

And on which device and which version of R?

If this is on Windows, see the rw-FAQ and the help on Rdevga, and choose
an appropriate value of the graphics par 'font' (normally 1 for Arial and
6 for Times).  Otherwise, consider par(family).

[And please do read the posting guide and not send posts twice or more.]

--
Brian D. Ripley,                  [hidden email]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: plot-function: How to change the font of the titles

PIKAL Petr
In reply to this post by paladini
Hi
Almost all graphic manipulation is done by par() setting. Sometimes
you can issue a par argument directly in plot() command so for
Windows

plot(...., font.lab = integer.number.to specify.predefined.font)

however I believe that font issue is device and OS specific and you
shall read (and try)

?par
?plot
?text
?axis
....

see also Rdevga file for predefined fonts

HTH
Petr




On 1 Feb 2006 at 11:28, [hidden email] wrote:

Date sent:       Wed, 1 Feb 2006 11:28:05 +0100
From:           [hidden email]
To:             [hidden email]
Subject:         [R] plot-function: How to change the font of the titles

> Hello!
> I want to create a plot with x- and y-labels writen in times or arial.
> How can I change the font?
>
> Thank you very much. Best regards
>
> Claudia
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
[hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html