On Thu, 16 Sep 2004, Paul Lemmens wrote:

> Hoi Christos,
> 
> --On donderdag 16 september 2004 16:00 +0300 Christos Rodopoulos 
> <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > 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,                  [EMAIL PROTECTED]
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

______________________________________________
[EMAIL PROTECTED] 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 via email to