Skip to contents

Nutrient balance flow in Sankey plot

Usage

N4_sankey(Nbalance_out)

Arguments

Nbalance_out

data frame. Nutrient balance result from the Nutbalance() function

Value

A Sankey diagram and a data frame with the some variable values

Examples

# \donttest{
# 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 model should be executed
loc_years <- 1990:2018
# Computing the nutrient balance
nut_bal <- region_nut_balance(catch_data_TN, annual_data_TN, alpha_p, alpha_l,
sd_coef, loc_years)
#> Error in region_nut_balance(catch_data_TN, annual_data_TN, alpha_p, alpha_l,     sd_coef, loc_years): could not find function "region_nut_balance"
# Plot the sankey plot with the result of the balance
sank <- N4_sankey(nut_bal)
#> Error in as.data.frame(Nbalance_out): object 'nut_bal' not found
# }