addmark.ppp {forestSAS}R Documentation

Add marks for a point pattern

Description

Add marks for a point pattern

Usage

addmark.ppp(X, add.mark, add.name = "storey")

Arguments

X

A point pattern (object of class "ppp").

add.mark

Marks need added in the point pattern

add.name

Names of added marks (add.mark)

Value

A point pattern added marks

Author(s)

Zongzheng Chai, chaizz@126.com

References

None

Examples

library(spatstat.data)
data(finpines)
####Dividing the stories
finpines.storey<-storeydvd(finpines$marks$height,storeynum=6)
finpines.storey

####Computing the storey differation
##Add the storey mark for finepines
finpines.addstorey<-addmark.ppp(finpines,
                                add.mark=finpines.storey$heightdata[,2:3],
                                add.name=c("interval","storey" ))
finpines.addstorey

[Package forestSAS version 2.0.4 Index]