Christos Rodopoulos
2004-Sep-16 13:00 UTC
FW: [R] How do I insert a newline in my title in a plot?
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")
?
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>
Paul Lemmens
2004-Sep-16 13:21 UTC
FW: [R] How do I insert a newline in my title in a plot?
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. So it's an interpretation matter. Unfortunately I cannot figure out the help page dealing with this :-/ kind regards, Paul -- Paul Lemmens NICI, University of Nijmegen ASCII Ribbon Campaign /"\ Montessorilaan 3 (B.01.05) Against HTML Mail \ / NL-6525 HR Nijmegen X The Netherlands / \ Phonenumber +31-24-3612648 Fax +31-24-3616066
Dear Christos, This works for me, and has many times in the past. Is it possible that you used a forward-slash (/), rather than a back-slash (\)? Alternatively, perhaps this has something to do with using Greek fonts. I hope this helps, John> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of > Christos Rodopoulos > Sent: Thursday, September 16, 2004 8:00 AM > To: 'R-help at stat.math.ethz.ch' > Subject: FW: [R] How do I insert a newline in my title in a plot? > > > 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") > ? > > > 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
Prof Brian Ripley
2004-Sep-16 13:26 UTC
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
Christos Rodopoulos
2004-Sep-16 13:48 UTC
FW: [R] How do I insert a newline in my title in a plot?
Thank you very much! I should have known...
well, to inform you, this is the case:
The problem was of a friend of mine, told to me me by phone.
From the begining I was telling my friend BYPHONE .... to do this:
title("This is a title\nIn 2 lines")
but my friend understood and did all the time this:
title("This is a title/nIn 2 lines").
but it is my problem too:
the problem is that I say slash and I mean backslash, or vice cersa (!) So
the phone-confusion occured, and I
was reporting a problem which does not exist!
thank you all for your help. Thanks from my friend too, and sorry for the
confusion I created.
-----Original Message-----
From: John Fox [mailto:jfox at mcmaster.ca]
Sent: ÐÝì?ôç, 16 Óå?ôåìâñßïõ 2004 16:25
To: 'Christos Rodopoulos'
Cc: R-help at stat.math.ethz.ch
Subject: RE: [R] How do I insert a newline in my title in a plot?
Dear Christos,
This works for me, and has many times in the past. Is it possible that you
used a forward-slash (/), rather than a back-slash (\)? Alternatively,
perhaps this has something to do with using Greek fonts.
I hope this helps,
John
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of
> Christos Rodopoulos
> Sent: Thursday, September 16, 2004 8:00 AM
> To: 'R-help at stat.math.ethz.ch'
> Subject: FW: [R] How do I insert a newline in my title in a plot?
>
>
> 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")
> ?
>
>
> 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