lines: Add styled line segments to a plot

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

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

Usage

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

Arguments

x, y

coordinates for start and end points for lines

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

1
2
3
4
5
# add lines to an existing plot area
plot(c(0, 10), c(0, 10), type="n")
lines(c(1,8), c(2, 2), lwd=3, col="black")
lines(c(1, 7, NA, 4, 9), c(1, 6, NA, 1, 3), lwd=1, col="blue")
lines(c(8, 3), c(7, 9), lwd=3, lty=2, col="red")

Rcssplot documentation built on Jan. 8, 2020, 5:11 p.m.