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

2004-09-16 Thread Andy Bunn
You had it.

plot(1:5, main = This is a title\nIn 2 lines)

HTH, Andy

__
[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


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

2004-09-16 Thread John Fox
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: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Christos Rodopoulos
 Sent: Thursday, September 16, 2004 8:00 AM
 To: '[EMAIL PROTECTED]'
 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:[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)
 ?
 
 
 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?
 
  __
  [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
 
 
 __
 [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

__
[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