-
> project.org] On Behalf Of Andre Nathan
> Sent: Monday, June 01, 2009 2:03 PM
> To: Greg Snow
> Cc: r-help@r-project.org
> Subject: Re: [R] Axis label spanning multiple plots
>
> Hello
>
> On Wed, 2009-05-27 at 13:38 -0600, Greg Snow wrote:
> > Create an out
On Mon, 2009-06-01 at 20:46 -0300, Andre Nathan wrote:
> the x and y coordinates seem to always be relative the the axes of the
> first call to plot().
Oops, no they aren't :) It was a mistake in the coordinates. They work
exactly the way I wanted.
Best,
Andre
___
Thank you, layout() worked perfectly!
Another question: I'm adding some text to the plots (using text()) and
the x and y coordinates seem to always be relative the the axes of the
first call to plot(). Is there a way to reset the coordinates so that
they are relative to the latest call to plot()?
sorry i misread the question -- i thought you wanted the two plots
were in one row. Here are a few options,
1- use ggplot2 or lattice, this is the default position for the labels
in a plot with facets
> library(ggplot2)
> qplot(mpg, wt, data=mtcars, facets=vs ~ .)
2- use layout() or split.s
On Mon, 2009-06-01 at 22:24 +0200, baptiste auguie wrote:
> you can use title() with the sub argument,
>
> title(sub="x label", outer=T) # you might want to play around with
> line argument
Can title() span two plots? I'm trying to use a single title for two
plots, something like
+
you can use title() with the sub argument,
title(sub="x label", outer=T) # you might want to play around with
line argument
baptiste
On 1 Jun 2009, at 22:03, Andre Nathan wrote:
Hello
On Wed, 2009-05-27 at 13:38 -0600, Greg Snow wrote:
Create an outer margin (see ?par), then use mtext to
Hello
On Wed, 2009-05-27 at 13:38 -0600, Greg Snow wrote:
> Create an outer margin (see ?par), then use mtext to put the title in the
> outer margin.
Sorry for taking that long to reply...
I created an outer margin with
par(oma = c (0, 2, 0, 0))
and then did
par(mfrow = c(2, 1))
plot(.
n...@r-
> project.org] On Behalf Of Andre Nathan
> Sent: Wednesday, May 27, 2009 1:40 PM
> To: r-help@r-project.org
> Subject: [R] Axis label spanning multiple plots
>
> Hello
>
> I need to plot 3 graphs in a single column; the top two plots have the
> same title, and I
Hello
I need to plot 3 graphs in a single column; the top two plots have the
same title, and I would like it to be written only once, centered
horizontally and spanning the two plots. Something like
t ++
||
i ||
||
t ++
9 matches
Mail list logo