input_plot {GREENeR} | R 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")
[Package GREENeR version 1.0.0 Index]