View source: R/createSpatialWindow.R
createSpatialWindow | R Documentation |
This function creates 'spatstat.geom::owin' polygonal spatial window which represents the boundaries of the tissue under study.
createSpatialWindow(pixelCoords, isPolygon = FALSE, clean = FALSE, plot = TRUE)
pixelCoords: |
a data frame with x and y columns containing the coordinates of all pixels within a given MSI data. A 'matrix' will be coerced into a data frame. |
isPolygon: |
a logical, whether 'pixelCoords' represents the coordinates of a polygon or not. |
clean: |
logical, whether to fill holes created by missing pixels. |
plot: |
whether to plot. |
A spatial window object of type 'spatstat.geom::owin'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.