Boxplot of a data frame returned by momentum()
summarizing the contribution to similarity (negative) and/or dissimilarity (positive) of individual variables across all time series.
Arguments
- df
(required, data frame) Output of
momentum()
. Default: NULL- fill_color
(optional, character vector) boxplot fill color. Default: NULL
- f
(optional, function) function used to aggregate the input data frame and arrange the boxes. One of
mean
ormedian
. Default:median
.- text_cex
(optional, numeric) Multiplier of the text size. Default: 1
See also
Other dissimilarity_analysis:
distantia_aggregate()
,
distantia_boxplot()
,
distantia_cluster_hclust()
,
distantia_cluster_kmeans()
,
distantia_matrix()
,
distantia_plot()
,
distantia_stats()
,
distantia_time_shift()
,
distantia_to_sf()
,
momentum_stats()
,
momentum_to_wide()
Examples
tsl <- tsl_initialize(
x = distantia::albatross,
name_column = "name",
time_column = "time"
) |>
tsl_transform(
f = f_scale_global
)
df <- momentum(
tsl = tsl,
lock_step = TRUE
)
momentum_boxplot(
df = df
)