Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lineplot

plot lines between landmarks


Description

add lines connecting landmarks to visualise a sort of wireframe

Usage

lineplot(x, point, col = 1, lwd = 1, line_antialias = FALSE,
  add = TRUE)

Arguments

x

matrix containing 2D or 3D landmarks

point

vector or list of vectors containing rowindices of x, determining which landmarks to connect.

col

color of lines

lwd

line width

line_antialias

logical: smooth lines

add

logical: add to existing plot

Note

works with 2D and 3D configurations

Author(s)

Stefan Schlager

See Also

Examples

if (require(shapes)) {
##2D example
plot(gorf.dat[,,1],asp=1)
lineplot(gorf.dat[,,1],point=c(1,5:2,8:6,1),col=2)
}
##3D example
## Not run: 
require(rgl)
data(nose)
points3d(shortnose.lm[1:9,])
lineplot(shortnose.lm[1:9,],point=list(c(1,3,2),c(3,4,5),c(8,6,5,7,9)),col=2)

## End(Not run)

Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.