Plot Multivariate Time Series Data
plotTS_multi(
df,
timeVec = NA,
groupVec = NA,
useVarNames = TRUE,
colOrder = TRUE,
doPlot = TRUE,
title = "",
subtitle = "",
xlabel = "Time",
ylabel = "",
returnPlotData = FALSE,
useRibbon = FALSE,
overlap = 1
)
A data frame with time series in columns.
If numeric, the number of the column in df
which contains a time keeping variable. If NA
, the time vector will be 1:NROW(df)
(default = NA
)
A vector indicating the names of the time series in the columns of df
. If NA
, the column names of df
will be used, excluding the timeVec
, if present (default = NA
)
Use the column names of df
as variable names in the Complexity Resonance Diagram (default = TRUE
)
If TRUE
, the order of the columns in df
determines the of variables on the y-axis. Use FALSE
for alphabetic/numeric order. Use NA
to sort by by mean value of Dynamic Complexity (default = TRUE
)
If TRUE
shows a Complexity Resonance Diagram of the Dynamic Complexity and returns an invisible ggplot2::ggplot()
object. (default = FALSE
)
A title for the plot.
A subtitle for the plot.
A label for the x-axis.
A label for the y-axis.
Return the restructured data frame used to create the plot (default = FALSE
)
Neat for distributions
Multiplier for scaling the series around the y-offset. Default is offset + elascer(y, lo = -.45*overlap, hi = .45*overlap)
and if useRibbon = TRUE
it is offset + elascer(y, lo = 0*overlap, hi = .95*overlap)
. (default = 1
)
A ggplot object.
# Use the coloured noise data set.
data(ColouredNoise)
plotTS_multi(ColouredNoise)