Function to convert spatial coordinates of a SpatialExperiment
object to a ppp
object
Source: R/utils.R
SPE2ppp.Rd
Function to convert spatial coordinates of a SpatialExperiment
object to a ppp
object
Examples
data(sostaSPE)
SPE2ppp(sostaSPE,
marks = "cellType", imageCol = "imageName",
imageId = "image1"
)
#> Marked planar point pattern: 1845 points
#> marks are of storage type ‘character’
#> window: rectangle = [0.10611, 127.83934] x [0.11046, 127.96008] units