View source: R/segment_region.R
segment_region | R Documentation |
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")
)
region_min |
A numerical value indicating the minimum value of the region. |
region_max |
A numerical value indicating the maximum value of the region. |
num_points |
The number of points to place in the region. |
alignment |
A character element indicating whether the points should be centered within the region or whether they should extend to the ends of the region. |
Returns n points spaced evenly across the defined region
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.