lines {Rcssplot} | R Documentation |
Add styled line segments to a plot
Description
This is a wrapper for R's lines function. See R's documentation for graphics::lines for further details.
Usage
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
# 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")
[Package Rcssplot version 1.0.0 Index]