getGridVisiumHD | R Documentation |
Generates a data.frame of grid elements for visualizing a grid overlay on VisiumHD spatial data.
getGridVisiumHD(object, res, img_name = activeImage(object))
object |
An object of class |
res |
A distance value specifying the desired resolution for the grid in micrometers (e.g., "32um"). The resolution must be greater than or equal to the current resolution and divisible by the current resolution. |
img_name |
Character value. The name of the image of interest.
If |
A data frame with the following columns:
idx: A character vector representing the identifier for each segment, typically indicating the row or column number (e.g., "row_9").
x: A numeric vector representing the x-coordinate of the starting point of the segment.
y: A numeric vector representing the y-coordinate of the starting point of the segment.
xend: A numeric vector representing the x-coordinate of the ending point of the segment.
yend: A numeric vector representing the y-coordinate of the ending point of the segment.
just: A character vector indicating the orientation of the segment (e.g., "horizontal").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.