Skip to contents

Function to get the dimension based on dim of y axis

Usage

getDimXY(ppp, ydim)

Arguments

ppp

point pattern object of class ppp

ydim

dimension of y axis

Value

vector; vector with x and y dimension

Examples

spe <- imcdatasets::Damond_2019_Pancreas("spe", full_dataset = FALSE)
#> see ?imcdatasets and browseVignettes('imcdatasets') for documentation
#> loading from cache
ppp <- SPE2ppp(spe,
    marks = "cell_category", image_col = "image_name",
    image_id = "E04"
)
getDimXY(ppp, 500)
#> [1] 500 690