No question would be complete without ggplot's answer.
dat <- list(a=1:5,b=2:7,c=3:10) dat <- lapply(dat, function(x) cbind(x = seq_along(x), y = x)) list.names <- names(dat) lns <- sapply(dat, nrow) dat <- as.data.frame(do.call("rbind", dat)) dat$group <- rep(list.names, lns) library(ggplot2) ggplot(dat, aes(x = x, y = y, colour = group)) + theme_bw() + geom_line(linetype = "dotted")

To build each row in a separate section, use
ggplot(dat, aes(x = x, y = y, colour = group)) + theme_bw() + geom_line(linetype = "dotted") + facet_wrap(~ group)
source share