Function to convert spatial coordinates of a SpatialExperiment object to a ppp object
Source: R/utils.R
SPE2ppp.RdFunction 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
#> Multitype, with levels = A, B, C
#> window: rectangle = [0.10611, 127.83934] x [0.11046, 127.96008] units