Skip to contents

Assumes that the data.frame is the output of .SPE2df(). Column order is important!

Usage

.df2ppp(df)

Arguments

df

data.frame; with x, y coordinates, image, and categorical mark information. Order of columns is important.

Value

ppp; object of type ppp

See also

.SPE2df, as.ppp

Examples

data(sostaSPE)
df <- .SPE2df(sostaSPE, marks = "cellType", imageCol = "imageName")
ppp <- .df2ppp(df)