Plot of covariance (or correlation) matrix as a function of lag or time. The covariance structure is vectorized internally and lag or time distances are computed and can be used for visualization.
g_covariance(
vcov_matrix,
time_prefix = NULL,
x_var = c("lag", "time_diff"),
xlab = NULL,
ylab = ""
)(matrix)
symmetric covariance matrix with identical
row and column names.
(string)
string in the names of vcov_matrix that
precedes the time point value.
(string)
can be lag or time_diff for lag
or time difference, respectively.
(string or NULL)
x-axis label, if NULL then automatically
determined from x_var.
(string)
y-axis label.
The ggplot object.
The default time_prefix value is NULL, which assumes that the names
of the input matrix don't have any character string other than time point
value. If a time_prefix is specified, this string should appear in front of
all the names in vcov_matrix.