FW: FW: [R] How do I insert a newline in my title in a plot?
Christos Rodopoulos
chrodopoulos at mindshare.gr
Thu Sep 16 15:34:21 CEST 2004
platform: Linux Mandrake 10.0 AMD processor, X11 graphics with XFree latest,
R version 1.9.1 home-compiled.
-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: ??????, 16 ??????????? 2004 16:27
To: Christos Rodopoulos
Cc: 'R-help at stat.math.ethz.ch'
Subject: Re: FW: [R] How do I insert a newline in my title in a plot?
On Thu, 16 Sep 2004, Christos Rodopoulos wrote:
>
> yes I have tries, and nothing. It just shows the strings with the slashn,
> just like i typed it.
Please consult the R posting guide and give us some basic information
such as version of R, platform, graphics device and so on.
> plot(1:10)
> title("this is a title\nIn 2 lines")
should work, and does for me on Windows and Linux. I dimly remember it
did not on a Mac at one point.
> -----Original Message-----
> From: Rashid Nassar [mailto:rnassar at duke.edu]
> Sent: ÃÃì?ôç, 16 ÃÃ¥?ôåìâñÃïõ 2004 15:44
> To: Christos Rodopoulos
> Subject: Re: [R] How do I insert a newline in my title in a plot?
>
>
> Have you not tried what you have already suggested:
>
> title("this is a title\nIn 2 lines")
> ?
>
>
> On Thu, 16 Sep 2004, Christos Rodopoulos wrote:
>
> > Hello, I want to help me with a simple I think question: How do I
insert
> a
> > newline into the title of a plot I have made?
> >
> > Is it only done with hershey fonts? vfont = ??? and so on? I do not
> > understand Hershey fonts, and I am afraid to use them, since I use greek
> > fonts (iso8859-7).
> >
> > I need propably something like: title("This is a title\nIn 2 lines");
> >
> > any help?
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
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
More information about the R-help
mailing list