comPair: comPair

Description Usage Arguments Examples

View source: R/FUNCTION_comPair.R

Description

Function to compute and plot correlations of 2 series (cumulative and by time window). Wrapper function for the the runCor() function from the TTR package.

Usage

1
comPair(X, window = 12, plot.type = "print")

Arguments

X

a data frame with 3 series, the first one is the time step (typically year)

window

number of time periods to use for each time window in the retrospective. Default is 12

plot.type

type of plot to generate: "none", "print", or "shiny" for use in the app. "shiny" type plots use plotly

Examples

1
comPair(SPATData_EnvCov[,c("yr","EC_jflow","EC_pdo")])

SOLV-Code/SPATFunctions-Package documentation built on April 25, 2020, 12:59 a.m.