Thanks David for the solution, I paste here the code with a few changes: par(xpd = NA, oma = c(5, 0, 0, 0)) matplot(t(buffersump[,1:6]), type="l", xaxt="n", lwd=3, ylab="Porcentajes de respuestas afirmativas") axis(1, 1:6, colnames(buffersump2)) legend("bottomright", legend=rownames(buffersump2), lty=1:5, col=1:5, inset = c(0, -0.7))
-- View this message in context: http://r.789695.n4.nabble.com/Line-chart-with-a-double-matrix-tp4637047p4637177.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.