[R] How do I insert a newline in my title in a plot?

John Fox jfox at mcmaster.ca
Thu Sep 16 15:24:50 CEST 2004


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




More information about the R-help mailing list