olines: Add (Sorted) Connected Line Segments to a Plot

Description Usage Arguments Examples

View source: R/olines.R

Description

Add (Sorted) Connected Line Segments to a Plot

Usage

1
olines(x, y = NULL, type = "l", ...)

Arguments

x, y

coordinate vectors of points to join.

type

character indicating the type of plotting; actually any of the types as in plot.default.

...

Further graphical parameters (see par) may also be supplied as arguments, particularly, line type, lty, line width, lwd, color, col and for type = "b", pch. Also the line characteristics lend, ljoin and lmitre.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
set.seed(123)
x <- rnorm(15)
y <- x * 5 + rnorm(15, 0, 3)

par(mfrow=c(1,2))
plot(x, y, main = "lines")
lines(x, y)

plot(x, y, main = "olines")
olines(x, y)
par(mfrow=c(1,1))
             

twolodzko/twextras documentation built on May 3, 2019, 1:52 p.m.