slopemeans | R Documentation |
Calculates the average slope over every segment of a specified percentage length of the total bearing area curve.
slopemeans(slopes, l = 0.4)
slopes |
A dataframe containing all slopes along the bearing area curve, calculated using the slopecalc function. |
l |
Percentage of the curve over which to calculate mean slope. |
A dataframe with the average slope over segments beginning at specified x locations along the bearing area curve. 'slope' represents the mean slope over the segment, 'xstart' is the beginning x location of the segment, and 'xend' is the concluding x location of the segment.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# find the average slope of segments of the bearing area
# curve.
ba <- bearing_area(normforest)
x <- seq(0, 1, length.out = 10000)
slopes <- slopecalc(x = x, h = 0.01, f = ba)
slopes_forty <- slopemeans(slopes = slopes, l = 0.4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.