This is an internal function used to segment regions for plotting. It returns n evenly spaced points in a given region. The points can be aligned to the ends of the interval, or centered in the interval.
segment_region(
region_min,
region_max,
num_points,
alignment = c("center", "ends")
)
Returns n points spaced evenly across the defined region
A numerical value indicating the minimum value of the region.
A numerical value indicating the maximum value of the region.
The number of points to place in the region.
A character element indicating whether the points should be centered within the region or whether they should extend to the ends of the region.