gr_plot_matrix | R Documentation |
The function plots runoff values, components and seasons using the matrix-based approach. The X axis corresponds to the day of the year, and the Y axis corresponds to the year. The function is useful when the whole picture of river runoff needs to be assessed.
gr_plot_matrix(df, years = NULL, type = "runoff", print = TRUE)
df |
|
years |
Integer vector of years to be plotted. Defaults to |
type |
Character string. Supported options are |
print |
Boolean. Print plot? Defaults to |
ggplot2
object representing the runoff values, components or seasons using the matrix-based approach
library(grwat)
data(spas) # example Spas-Zagorye data is included with grwat package
# separate
sep = gr_separate(spas, params = gr_get_params(reg = 'center'))
# matrix plot for runoff
gr_plot_matrix(sep, type = 'runoff')
# matrix plot for seasons
gr_plot_matrix(sep, type = 'season')
# matrix plot for genetic components
gr_plot_matrix(sep, type = 'component')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.