Obtain spatial coordinates

getCoordinates(object, of_sample = "")

getCoordinatesSegment(object, of_segment, of_sample = "")

Arguments

object

A valid spata-object.

of_sample

The sample(s) of interest specified as a single character value or vector. If set to "" (the default) the first sample is chosen.

of_segment

Character value. Specifies the segment of interest.

Value

A data.frame containing the variables barcods, sample, x, y (and segment if specified).