Re: [R] Multiple plots; single x(y) labels

2010-05-14 Thread Shi, Tao
ha, I was focusing on the wrong thing! Sorry, Gurmeet. Good job! > >From: Xin Ge >To: "Shi, Tao" >Cc: Gurmeet ; Jim Lemon ; >r-help@r-project.org >Sent: Fri, May 14, 2010 10:51:26 AM >Subject: Re: [R] Multiple plots; single x(y) labels > > >Th

Re: [R] Multiple plots; single x(y) labels

2010-05-14 Thread Xin Ge
xes, rather than just one > single xlab or ylab. > > Jim's solution is much more fancier than mine :-) > > ...Tao > > > > > - Original Message > > From: Gurmeet > > To: Jim Lemon > > Cc: r-help@r-project.org > > Sent: Fri, Ma

Re: [R] Multiple plots; single x(y) labels

2010-05-14 Thread Shi, Tao
2010 10:00:03 AM > Subject: Re: [R] Multiple plots; single x(y) labels > > Hi Xin, Or, just try adding "oma" and "mtext" > commands: ?par ?mtext # > Code par(mfcol=c(2,2)) par(oma=c(2,2,0,0)) plot(x <- sort(rnorm(7)), > type = "s", main =

Re: [R] Multiple plots; single x(y) labels

2010-05-14 Thread Gurmeet
Hi Xin, Or, just try adding "oma" and "mtext" commands: ?par ?mtext # Code par(mfcol=c(2,2)) par(oma=c(2,2,0,0)) plot(x <- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(27)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(47)), type = "s", main = ""

Re: [R] Multiple plots; single x(y) labels

2010-05-14 Thread Jim Lemon
On 05/14/2010 02:04 AM, Xin Ge wrote: Hi All, Can anyone please help me with getting a single x and y-axis label while plotting muliple plots. Here is the code: par(mfcol=c(2,2)) plot(x<- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="") plot(x<- sort(rnorm(27)), type = "s", main = "", y

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread Henrique Dallazuanna
Try this: x1 <- rnorm(7) x2 <- rnorm(27) x3 <- rnorm(47) x4 <- rnorm(67) xyplot(value ~ i | id, do.call(rbind, lapply(ls(patt = "x"), function(x)data.frame(id = x, value = get(x), i = seq_along(get(x), type='l') On Thu, May 13, 2010 at 1:04 PM, Xin Ge wrote

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread Shi, Tao
e same xlim and ylim. Like David said, you're re-inventing the wheels . ...Tao - Original Message > From: Xin Ge > To: David Winsemius > Cc: r-help@r-project.org > Sent: Thu, May 13, 2010 10:24:56 AM > Subject: Re: [R] Multiple plots; single x(y) labels > >

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread David Winsemius
On May 13, 2010, at 1:24 PM, Xin Ge wrote: > Hi David (and Others), > > I think I messed it up. Lets start afresh, I do not want to use > lattice for this. I'm using multiple "plot" commands and then > eventually would like to get a *combine* x-label and y-label for > this plot. > > Like fo

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread schuster
Hello Xin, If you need to recreate plots from different systems you need full control over the graphics output. This is not always easy with traditional graphics, better have a look at the plotting functions from lattice (based on grid graphics system in R) or maybe ggplot2. http://www.googl

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread Xin Ge
Hi David (and Others), I think I messed it up. Lets start afresh, I do not want to use lattice for this. I'm using multiple "plot" commands and then eventually would like to get a *combine* x-label and y-label for this plot. Like for example, the following plot has a combine x-label ("Height") an

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread David Winsemius
On May 13, 2010, at 12:59 PM, Xin Ge wrote: Hi David, Thanks for your reply. By single x and y-labels I meant something like this: http://zoonek.free.fr/blosxom//R/2006-08-10_lattice_xyplot_quakes.png which lattice gives by default. The code you sent doesn't seem to solve the problem, I

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread Xin Ge
Hi David, Thanks for your reply. By single x and y-labels I meant something like this: http://zoonek.free.fr/blosxom//R/2006-08-10_lattice_xyplot_quakes.png which lattice gives by default. The code you sent doesn't seem to solve the problem, I'm sorry if I havent' explained it clearly before. A

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread David Winsemius
On May 13, 2010, at 12:35 PM, David Winsemius wrote: ?plot # ylim and you need to have the data in a form (before plotting) where you can determine the shared max and min for the y limits On May 13, 2010, at 12:04 PM, Xin Ge wrote: Hi All, Can anyone please help me with getting a sing

Re: [R] Multiple plots; single x(y) labels

2010-05-13 Thread David Winsemius
?plot # ylim and you need to have the data in a form (before plotting) where you can determine the shared max and min for the y limits On May 13, 2010, at 12:04 PM, Xin Ge wrote: Hi All, Can anyone please help me with getting a single x and y-axis label while plotting muliple plots. H

[R] Multiple plots; single x(y) labels

2010-05-13 Thread Xin Ge
Hi All, Can anyone please help me with getting a single x and y-axis label while plotting muliple plots. Here is the code: par(mfcol=c(2,2)) plot(x <- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(27)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(