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 <xingemaill...@gmail.com> 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 = "", ylab="", xlab="") > plot(x <- sort(rnorm(47)), type = "s", main = "", ylab="", xlab="") > plot(x <- sort(rnorm(67)), type = "s", main = "", ylab="", xlab="") > > also, how can remove x-tick lables using plot()? > > Thanks, > Xin > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.