R - matplot(): plot column of matrices

02 Dec 2017

Use matplot to plot the columns of one matrix against the columns of another (generate a new plot).

Use matlines or matpoints to add lines and points to the current plot.

Usage:

     matplot(x, y, type = "p", lty = 1:5, lwd = 1, lend = par("lend"),
             pch = NULL,
             col = 1:6, cex = NULL, bg = NA,
             xlab = NULL, ylab = NULL, xlim = NULL, ylim = NULL,
             ..., add = FALSE, verbose = getOption("verbose"))
     
     matpoints(x, y, type = "p", lty = 1:5, lwd = 1, pch = NULL,
               col = 1:6, ...)
     
     matlines (x, y, type = "l", lty = 1:5, lwd = 1, pch = NULL,
               col = 1:6, ...)

[ R  function  matrix  plot  ]