input_plot: Plot input load by source

View source: R/rgreen_plots.R

input_plotR Documentation

Plot input load by source

Description

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 = annual_data_TN, basin_name = basin_name, plot.type = "B")
# the density plots
input_plot(annual_data_TN, sh_file, basin_name, "D")


GREENeR documentation built on May 29, 2024, 6:18 a.m.