plot.Slope: Plots the slope and elevation from a Slope object

View source: R/Slope.R

plot.SlopeR Documentation

Plots the slope and elevation from a Slope object

Description

The Slope object contains distances and slopes. The remainder of the slopes need to be linearly interpolated. These linearly interpreted slopes are the derivative of the elevation (hillslope) profile. We start each hillslope at the point (0,0).

Usage

## S3 method for class 'Slope'
plot(slp, n = 1001, plots = c("slope", "elevation"))

Arguments

slp

a Slope object

n

(optional) a positive integer indicating how many points to evaluate for drawing

plots

(optional) a charcter vector indicating whether to draw the "slope", "elevation", or both

Value

a gtable containing plots of slope or elevation

See Also

expand_slp

Examples

slp <- read_slp(system.file("extdata", "071000090603_2.slp", package="WEPPR"))
plot(slp, plots=c("slope"))
plot(slp, plots=c("elevation"))
plot(slp)


jarad/WEPPR documentation built on Nov. 3, 2023, 5:42 a.m.