input_plot | R Documentation |
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).
input_plot(annual_data, sh_file, basin_name, plot.type, coef_SD = 1)
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. |
No return value, called for the side effect of drawing a plot
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.