abseg: Add indices as ling segments or points to the figures

Description Usage Arguments Value Examples

View source: R/gen_grid.R

Description

Draws isolated points as dots, and consecutive points as line segments.

Usage

1
abseg(x, y, code = 0, pch = ".", length = 0.05, clear = FALSE, lwd = 1, ...)

Arguments

x

integer indices, will be used to calculate locations in points or arrows

y

y-axis locations for points or line segments

code, length, ...

passed to arrows

pch

point styles, passed to points

clear

whether to clear the line before drawing

lwd

used to calculate the line weight and point size; see 'lwd' and 'cex' in plot, Section 'Details'.

Value

Nothing.

Examples

1
2
plot(1:10)
abseg(c(1,2,3,5,7,8,10), y = 5, lwd = 4, col = 'red')

dipterix/focr documentation built on Dec. 20, 2021, 12:03 a.m.