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
spe <- imcdatasets::Damond_2019_Pancreas("spe", full_dataset = FALSE)
#> see ?imcdatasets and browseVignettes('imcdatasets') for documentation
#> downloading 1 resources
#> retrieving 1 resource
#> loading from cache
SPE2ppp(spe, marks = "cell_category", image_col = "image_name", image_id = "E04")
#> Marked planar point pattern: 3139 points
#> marks are of storage type ‘character’
#> window: rectangle = [0.6154, 682.3333] x [0, 494] units