Lsort {TreeRingShape}R Documentation

Sort x,y coordinates of a tree ring line with center angle of each point

Description

Sort x,y coordinates of a tree ring line with center angle of each point

Usage

Lsort(l.)

Arguments

l.

x,y coordinates matrix (ncol=2) or data.frame of an tree ring.

Value

ordered with center angle of each point

Examples

i<-seq(0,2*pi,0.1)
l.<-data.frame(x=sin(i),y=cos(i))
l.[10,]<-l.[20,]
plot(l.,type="b")
plot(Lsort(l.),type="b")


[Package TreeRingShape version 3.0.3 Index]