Re: [R] Fitting large titles in a plot

2007-12-09 Thread Patrick Connolly
On Thu, 06-Dec-2007 at 07:16AM -0800, Svempa wrote: |> |> I want to fit a fairly long main title for a plot, supposedly by changing row |> after a while. As for now it starts way outside the picture margin at the |> left and continues way out right passed the right margins. |> |> >plot(A,main="T

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Jim Price
I have learned something new - thanks for the strwrap info. The problem with posting from Nabble is that by the time your post actually gets to the list (2 hours after you posted it in this case) and you've written some line like "Knowing the R list, someone can probably reduce this function to 2

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Marc Schwartz
On Thu, 2007-12-06 at 09:28 -0800, Jim Price wrote: > I wrote a little utility function for exactly this reason, which I use with > long titles. You may want to add calls to par to adjust the upper margin if > you are using raw graphical functionality (plot et al) - but lattice adjusts > the upper

Re: [R] Fitting large titles in a plot

2007-12-06 Thread John Kane
\n to start a new line plot(1:10,main="This is my really long title \n and it's so long that I can see \n just about half of it.") --- Svempa <[EMAIL PROTECTED]> wrote: > > I want to fit a fairly long main title for a plot, > supposedly by changing row > after a while. As for now it starts way

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Bert Gunter
Try This: plot(A,main=paste("This is my really long title and","\n","it's so long that I can see just about half of it.", sep = " ")) -- Bert Gunter Genentech __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Jim Price
I wrote a little utility function for exactly this reason, which I use with long titles. You may want to add calls to par to adjust the upper margin if you are using raw graphical functionality (plot et al) - but lattice adjusts the upper margin automatically so you wouldn't need to add anything e

Re: [R] Fitting large titles in a plot

2007-12-06 Thread jim holtman
try this: plot(0, main=paste(strwrap("This is my really long title and it's so long that I can see just about half of it.", width=50), collapse="\n")) On Dec 6, 2007 7:16 AM, Svempa <[EMAIL PROTECTED]> wrote: > > I want to fit a fairly long main title for a plot, supposedly by changing row > aft

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Marc Schwartz
On Thu, 2007-12-06 at 07:16 -0800, Svempa wrote: > I want to fit a fairly long main title for a plot, supposedly by changing row > after a while. As for now it starts way outside the picture margin at the > left and continues way out right passed the right margins. > > >plot(A,main="This is my re

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Greg Snow
--- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Svempa > Sent: Thursday, December 06, 2007 8:16 AM > To: r-help@r-project.org > Subject: [R] Fitting large titles in a plot > > > I want to fit a fairly long main title for a plot, supposedly > by cha

[R] Fitting large titles in a plot

2007-12-06 Thread Svempa
I want to fit a fairly long main title for a plot, supposedly by changing row after a while. As for now it starts way outside the picture margin at the left and continues way out right passed the right margins. >plot(A,main="This is my really long title and it's so long that I can see just about