reorder_columns: Reorder Columns Based On Last Observed Value

Description Usage Arguments

View source: R/manipulate.R

Description

When visualizing multiple series in a dygraph, it can be helpful to have the series be in the same order in the legend.

Usage

1
reorder_columns(x, decreasing = TRUE)

Arguments

x

a data.frame where the first column is the date and the rest are columns to be reordered

decreasing

which way to sort; TRUE by default


wikimedia/wikimedia-discovery-polloi documentation built on Dec. 4, 2019, 2:12 p.m.