addmark.ppp | R Documentation |
Add marks for a point pattern
addmark.ppp(X, add.mark, add.name = "storey")
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) |
A point pattern added marks
Zongzheng Chai, chaizz@126.com
None
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.