plot_area: A function to plot the area between two profiles

View source: R/plot_area.R

plot_areaR Documentation

A function to plot the area between two profiles

Description

This function takes as input the result of function area_between()

Usage

plot_area(result_area, distinguish_type = TRUE, show_uncertainty = FALSE)

Arguments

result_area

the result of function area_between() or area_uncertainty()

distinguish_type

whether or not to distinguish between upper area and lower area

show_uncertainty

whether or not to show the sources of error

Value

a plot showing the area difference between series

Examples

s1=tibble::tibble(l=c(1,3,5,6,9),z=c(1,2,3,2.5,5))
s2=tibble::tibble(l=c(0.5,2.5,4,6,8),z=c(3,1,2,4,3))
result_area <- area_between(s1,s2,sigma_z=c(0.2,0.5),sigma_l=c(0.25,0.25))
plot_area(result_area, show_uncertainty=TRUE)

lvaudor/riverbed documentation built on Feb. 25, 2023, 3:47 p.m.