Rcssplot (version 1.0.0)

matplot: Add styled line segments to a plot

Description

This is a wrapper for R's matplot function. See R's documentation for graphics::matplot for further details.

Usage

matplot(x, y, Rcss = "default", Rcssclass = NULL, ...)

Arguments

x, y

vectors or matrices of data for plotting. The number of rows should match. If one of them are missing, the other is taken as y and an x vector of 1:n is used. Missing values (NAs) are allowed.

Rcss

style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle()

Rcssclass

character, style class

...

Further parameters, see documentation of graphics::lines

Examples

Run this code
# NOT RUN {
# draw scatter based on column in a matrix
dataset = cbind(A=rnorm(20), B=rnorm(20))
matplot(dataset)

# }

Run the code above in your browser using DataCamp Workspace