gr_plot_matrix {grwat} | R Documentation |
Runoff matrix plot
Description
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.
Usage
gr_plot_matrix(df, years = NULL, type = "runoff", print = TRUE)
Arguments
df |
|
years |
Integer vector of years to be plotted. Defaults to |
type |
Character string. Supported options are |
print |
Boolean. Print plot? Defaults to |
Value
ggplot2
object representing the runoff values, components or seasons using the matrix-based approach
Examples
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')
[Package grwat version 0.0.4 Index]