Re: [R] Line spacing in graphics

2011-02-18 Thread Peter Langfelder
On Fri, Feb 18, 2011 at 3:55 PM, Sarah Goslee wrote: > Peter, > > Try par()$lheight > > The catch is, you need to set it *before* the call to text() > > par(lheight=.8) # closer together > text(x, y, "whatever\nsecondline") > > The best place to find options like lheight is in ?par Thanks - I had

Re: [R] Line spacing in graphics

2011-02-18 Thread Sarah Goslee
Peter, Try par()$lheight The catch is, you need to set it *before* the call to text() par(lheight=.8) # closer together text(x, y, "whatever\nsecondline") The best place to find options like lheight is in ?par Sarah On Fri, Feb 18, 2011 at 6:41 PM, Peter Langfelder wrote: > Hi all, > > tried

[R] Line spacing in graphics

2011-02-18 Thread Peter Langfelder
Hi all, tried to google but found nothing, so here goes the question: is there a way to control line spacing when displaying text in graphical mode (for example, using text())? As an example, run the following code: plot(c(0,1), c(0,1), type = "n", axes = FALSE, xlab = "", ylab = "") text(0.5, 0