gr_plot_acf | R Documentation |
The function plots the autocorrelation function (ACF) for daily runoff time series. A number of days corresponding to the specified autocorr
value is highlighted.
gr_plot_acf(hdata, autocorr = 0.7, maxlag = 30, print = TRUE)
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 |
ggplot2
object representing the autocorrelation function (ACF) for daily runoff time series
library(grwat)
# example Spas-Zagorye data is included with grwat package
data(spas)
head(spas)
# plot ACF
gr_plot_acf(spas, 0.65)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.