View source: R/graph_wrappers.R
findVisiumHDGraph | R Documentation |
Visium HD spots are arranged in a square grid. This function finds either a
rook or a queen spatial neighborhood graph for the spots. colData
of
the SFE object must have columns array_row
and array_col
.
findVisiumHDGraph(x, style = "W", queen = FALSE, zero.policy = TRUE)
x |
An SFE object with Visium HD data with one sample with the required
information in its |
style |
|
queen |
Logical. Default is |
zero.policy |
default NULL, use global option value; if FALSE stop with error for any empty neighbour sets, if TRUE permit the weights list to be formed with zero-length weights vectors |
A listw
object for the graph.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.