simobs_annual_plot: Scatter plot comparing observed vs modeled loads by year

View source: R/rgreen_plots.R

simobs_annual_plotR Documentation

Scatter plot comparing observed vs modeled loads by year

Description

Plot

Usage

simobs_annual_plot(
  catch_data,
  annual_data,
  alpha_p,
  alpha_l,
  sd_coef,
  years,
  name_basin,
  max_value
)

Arguments

catch_data

data frame. Definition of the topological sequence of catchments.

annual_data

data frame. Sources of nutrient for each year and catchments.

alpha_p

numeric. First model parameter, the basin retention coefficient.

alpha_l

numeric. Second model parameter, the river retention coefficient.

sd_coef

numeric. Third model parameter, fraction of domestic diffuse sources that reaches the stream network.

years

numeric. Years to be shown in the plot.

name_basin

character. The title of the plot.

max_value

numeric. The maximum value for x and y axis.

Value

Multiple scatter plot and a data frame with annual nutrient (nitrogen or phosphorus) load for all catchments in the basin

Examples


# the data of the TN scenario
data(catch_data_TN)
data(annual_data_TN)
# the parameter to assess the basin model
alpha_p <- 35.09
alpha_l <- 0.02
sd_coef <- 0.2
# years in which the plot will we shown
years <- 1990:2018
maxvalue <- 10
# generating the scatter plot comparing observed vs modeled loads by year
name_basin <- "Lay NSE"
max_value <- 10
simobs_annual_plot(catch_data_TN, annual_data_TN, alpha_p, alpha_l,
sd_coef, years, name_basin, max_value)



GREENeR documentation built on Nov. 17, 2023, 1:06 a.m.