FW: [R] How do I insert a newline in my title in a plot?
    Prof Brian Ripley 
    ripley at stats.ox.ac.uk
       
    Thu Sep 16 16:15:59 CEST 2004
    
    
  
On Thu, 16 Sep 2004, Paul Lemmens wrote:
> Hoi Christos,
> 
> --On donderdag 16 september 2004 16:00 +0300 Christos Rodopoulos 
> <chrodopoulos at mindshare.gr> wrote:
> 
> > yes I have tries, and nothing. It just shows the strings with the slashn,
> > just like i typed it.
> > -----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")
> > ?
> >
> I've tried it out and you should use single quotes, then it'll work.
At least inside R single and double quotes are equivalent.
> So it's an interpretation matter. Unfortunately I cannot figure out the 
> help page dealing with this :-/
That's because it's in R-lang:
String constants are delimited by a pair of single (@samp{'}) or double
(@samp{"}) quotes and can contain all other printable characters.
Quotes and other special characters within strings are specified using
@emph{escape sequences}:
A single quote may also be embedded directly in a double-quote delimited
string and vice versa.
It is possible that a front-end processor is interfering here, and so what 
is typed is not reaching R unchanged.
-- 
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