Skip to contents

Analyses the returns of the coin selected in the Timeseries tab by day of the week, week of the year, month or year of the halving cycle with seasonality_analysis(), and shows them in words, as a chart and as a table. The CSV file, named like bitcoin-btc-seasonality-month-2026-11-07.csv, holds seasonality_csv(): a row per group.

Usage

mod_seasonality_server(id, history, dark_mode)

Arguments

id

Character. Module namespace id, must match the id used in mod_seasonality_ui().

history

Reactive returning the price history of the selected coin, from mod_timeseries_server().

dark_mode

Reactive returning "light" or "dark", the mode of the app.

Value

None. Called for its side effect of registering the module server.

Examples

if (FALSE) { # \dontrun{
# inside app_server():
function(input, output, session) {
  dark_mode <- reactive(input$dark_mode)
  history <- mod_timeseries_server("timeseries", coins, dark_mode)
  mod_seasonality_server("seasonality", history, dark_mode)
}
} # }