- data
Dataframe or named list of dataframes. If a dataframe is provided and aggregation_column
is passed, data are split by that column.
- output_path
Character. Base output directory.
- aggregation_column
Character. Column used to aggregate/split data by region.
- population_col
Character. The column containing population data.
- plot_corr_matrix
Logical. Whether to plot correlation matrix.
- correlation_method
Character. Correlation method. One of 'pearson', 'spearman', 'kendall'.
- plot_dist
Logical. Whether to plot distribution histograms.
- plot_ma
Logical. Whether to plot moving averages over a timeseries.
- ma_days
Integer. Number of days to use for moving average.
- ma_sides
Integer. Sides to use for moving average (1 or 2).
- timeseries_col
Character. Timeseries column used for moving averages and time-based plots.
- dependent_col
Character. Dependent variable column.
- independent_cols
Character vector. Independent variable columns.
- units
Named character vector. Units for variables.
- plot_na_counts
Logical. Whether to plot NA counts.
- plot_scatter
Logical. Whether to plot scatter plots.
- plot_box
Logical. Whether to plot box plots.
- plot_seasonal
Logical. Whether to plot seasonal trends.
- plot_regional
Logical. Whether to plot regional trends.
- plot_total
Logical. Whether to plot total health outcomes by year.
- detect_outliers
Logical. Whether to output an outlier table.
- calculate_rate
Logical. Whether to plot annual rates per 100k.
- run_id
Character. Optional run id. If NULL, a timestamped id is generated.
- create_base_dir
Logical. Whether to create output_path if missing.