Skip to contents

A grouped barplot representing the average input load by source for the whole basin or a three density plots showing the distribution of nutrient sources (7 for nitrogen, 5 for phosphorous).

Usage

input_plot(annual_data, sh_file, basin_name, plot.type, coef_SD = 1)

Arguments

annual_data

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

sh_file

sf object. The spatial information.

basin_name

character. The title of the plot.

plot.type

character. Possible values: Bar plot ("B") or Density plot (“D”).

coef_SD

numeric. The standard deviation coefficient.

Value

No return value, called for the side effect of drawing a plot

Examples

# the data of the TN scenario
data(annual_data_TN)
data(sh_file)
# The name of the basin
basin_name <- "Lay"
# the barplot
input_plot(annual_data_TN, sh_file, basin_name, "B")

# the density plots
input_plot(annual_data_TN, sh_file, basin_name, "D")