marginlabels: Label points from the margin

Description Usage Examples

Description

Labels are sorted according to the axis along which they are labeled. This could be made a lot better since this often ends up in crossed lines..

Usage

1
2
3
marginlabels(x, y = NULL, labels = seq_along(x), margin = 4,
  col = "black", lty = 1, lwd = 1, pch = 1, pch.cex = 1, las = 2,
  rad = 0.15, ...)

Examples

1
2
3
4
5
y <- rnorm(100)
x <- runif(100)
plot(x, y, pch=20, bty='n')
label.pts <- tail(order(y), 10)
marginlabels(x[label.pts], y[label.pts], margin=3, lty=3, rad=0.05)

sushilashenoy/zoom.plot documentation built on May 30, 2019, 8:42 p.m.