| input_Tserie | R Documentation | 
Creates a time series plot showing basin inputs by source
input_Tserie(catch_data, annual_data, sh_file, basin_name, plot.type)
| catch_data | data frame. Definition of the topological sequence of catchments. | 
| 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. Alternative of the plot: “gr1”: stacked area; “gr2”: lines & area. | 
A time-series plot
# the data of the TN scenario
data(catch_data_TN)
data(annual_data_TN)
data(sh_file)
# The title of the plot
plotTitle <- "Time series for the Lay Basin"
# the time serie plot 1 (lines)
input_Tserie(catch_data_TN, annual_data_TN, sh_file, plotTitle, "gr1")
# the time serie plot 2 (lines & area)
input_Tserie(catch_data_TN, annual_data_TN, sh_file, plotTitle, "gr2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.