area {TreeRingShape} | R Documentation |
Return a area from polygon xy coordinates
area(xy)
xy |
a atrix or data frame of xy coordinates |
a vector of polygon area
xy<-data.frame(x=c(0,1,2,1),y=c(1,2,1,0))
plot(xy,type="b") ; polygon(xy)
area(xy)