plot_ecdf_correlation: Plot the ECDF of Correlation Or Cross-correlation of...

Description Usage Arguments

View source: R/plotting_tools.R

Description

Plot correlation of dataset1 with given lags or cross-correlation between dataset1 and dataset2 with given lags.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_ecdf_correlation(
  dataset1,
  dataset2 = NULL,
  lags,
  freqs,
  corr_method = "pearson",
  response = c("max", "avg"),
  diffs = c(0, 0),
  diff_lags = c(1, 1),
  name,
  ...
)

Arguments

dataset1

A numeric dataframe or matrix with each column as a trace of type 1.

dataset2

A numeric dataframe or matrix with same dimension as dataset1 representing a different type of trace.

lags

A numeric vector representing the lag of autocorrelations or cross-correlations.

freqs

A numeric vector representing the window size of observations to be aggregated.

corr_method

A character representing the type of correlation to be calculated.

response

A character vector of length two representing the type of aggregation, can be either "max" or "avg"

diffs

A numeric vector of length two representing the order of differences on dataset1 and dataset2.

diff_lags

A numeric vector of length two representing which lag to use when differencing on dataset1 and dataset2.

name

A character that represents the identifier or name of the plot.

...

Characters that represent the name of parent directories that will be passed to write_location_check.


carlonlv/DataCenterSim documentation built on Jan. 9, 2022, 3:26 p.m.