colon_heatmap_grid: Colon Heatmap Grid

View source: R/sf.R

colon_heatmap_gridR Documentation

Colon Heatmap Grid

Description

This function creates a grid of points within the colon geometry, which can be used to generate heatmaps or other spatial visualizations. The grid is created by intersecting a dense grid of points with the colon geometry, resulting in a set of points that lie within the colon structure.

Usage

colon_heatmap_grid(grid_res = 500, variant = "standard")

Arguments

grid_res

The resolution of the grid, which determines how many points are generated. A higher resolution will create a denser grid, which can lead to smoother heatmaps but may also increase computation time.

variant

A character string specifying the variant of the colon blueprint to use.

Details

The function first creates a dense grid of points based on the specified resolution, then intersects this grid with the colon geometry to retain only the points that lie within the colon. The resulting sf object contains the coordinates of the points that can be used for further analysis or visualization.

Value

An sf object containing the points that lie within the colon geometry, which can be used for heatmap generation or other spatial analyses.


ggcolonviz documentation built on Oct. 15, 2026, 5:09 p.m.