Skip to content
Prev 180718 / 398502 Next

Simple plotting errors

I'd suggest you first combine the 12 data.frames into one, using  
melt() from the reshape package.

makeDummy <- function(.){ # since you don't provide a reproducible  
example
	
	data.frame(x=letters[1:10], y=rnorm(10))
}


listOf12DataFrames <- lapply(1:12, makeDummy)

library(reshape)
dm <- melt(listOf12DataFrames, id="x")
str(dm) # each original data.frame is identified by the integer L1

with(subset(dm, x=="a"),
plot(L1, value, t="l"))


baptiste
On 18 May 2009, at 13:17, Steve Murray wrote:

            
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag