gr_plot_acf {grwat} | R Documentation |
Plot runoff ACF
Description
The function plots the autocorrelation function (ACF) for daily runoff time series. A number of days corresponding to the specified autocorr
value is highlighted.
Usage
gr_plot_acf(hdata, autocorr = 0.7, maxlag = 30, print = TRUE)
Arguments
hdata |
|
autocorr |
Numeric value of the autocorrelation for which the time period will be highlighted. Defaults to |
maxlag |
Integer value of the maximum daily lag used to calculate the correlation. Defaults to |
print |
Boolean. Print plot? Defaults to |
Value
ggplot2
object representing the autocorrelation function (ACF) for daily runoff time series
Examples
library(grwat)
# example Spas-Zagorye data is included with grwat package
data(spas)
head(spas)
# plot ACF
gr_plot_acf(spas, 0.65)
[Package grwat version 0.0.4 Index]