# bramblecanes (3 marks).
data(bramblecanes)
X.F <- alltypes(bramblecanes,fun="F",verb=TRUE)
plot(X.F)
X.G <- alltypes(bramblecanes,fun="G",verb=TRUE)
X.J <- alltypes(bramblecanes,fun="J",verb=TRUE)
X.K <- alltypes(bramblecanes,fun="K",verb=TRUE)
X.Gd <- alltypes(bramblecanes,fun="Gdot",verb=TRUE)
X.Jd <- alltypes(bramblecanes,fun="Jdot",verb=TRUE)
X.Kd <- alltypes(bramblecanes,fun="Kdot",verb=TRUE)
<testonly># smaller dataset
bram <- bramblecanes[seq(1, bramblecanes$n, by=20), ]
X.F <- alltypes(bram,fun="F",verb=TRUE)
X.G <- alltypes(bram,fun="G",verb=TRUE)
X.J <- alltypes(bram,fun="J",verb=TRUE)
X.K <- alltypes(bram,fun="K",verb=TRUE)
X.Gd <- alltypes(bram,fun="Gdot",verb=TRUE)
X.Jd <- alltypes(bram,fun="Jdot",verb=TRUE)
X.Kd <- alltypes(bram,fun="Kdot",verb=TRUE)</testonly>
# Swedishpines (unmarked).
data(swedishpines)
<testonly>swedishpines <- swedishpines[1:25]</testonly>
X.K <- alltypes(swedishpines,fun="K")
X.F <- alltypes(swedishpines,fun="F")
X.G <- alltypes(swedishpines,fun="G")
X.J <- alltypes(swedishpines,fun="J")
# simulated data
pp <- runifpoint(350, owin(c(0,1),c(0,1)))
pp$marks <- factor(c(rep(1,50),rep(2,100),rep(3,200)))
X.F <- alltypes(pp,fun="F",verb=TRUE,dataname="Fake Data")
X.G <- alltypes(pp,fun="G",verb=TRUE,dataname="Fake Data")
X.J <- alltypes(pp,fun="J",verb=TRUE,dataname="Fake Data")
X.K <- alltypes(pp,fun="K",verb=TRUE,dataname="Fake Data")
# A setting where you might REALLY want to use dataname:
xxx <- alltypes(ppp(Melvin$x,Melvin$y,
window=as.owin(c(5,20,15,50)),marks=clyde),
fun="F",verb=TRUE,dataname="Melvin")
Run the code above in your browser using DataLab