plot_cor: plot_cor

Description Usage Arguments Examples

View source: R/cor_plot.R

Description

Plots rolling correlation for timepls_fit S4 object's date and residuals

Usage

1

Arguments

fit

time_pls fit object from time_pls function

window

window for correlations

smooth

smoothing window for correlation plot

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
d <- climate_data
dates <- d$date
y <- d$cfs
X <- cbind(d$p,d$tmin,d$tmax)
fit <- time_pls(y,X,dates,lag=30,ncomps=10)
plot_cor(fit,window=60,smooth=90)

## End(Not run)

scworland-usgs/timepls documentation built on May 20, 2019, 11:37 a.m.