build_dashboard | R Documentation |
Create IPCA forecast model dashboard
build_dashboard( y = "ipca", data = ts_transform(get_data(), y), accuracy = train_models(data, y), forecast = forecast_ensemble(ts_transform(get_data(), y, seasonal_dummies = FALSE), y), ensemble_col = "ensemble", title_fanchart = rlang::as_utf8_character("**Fanchart**: Previsão do IPCA"), y_lab_fanchart = "% a.m.", caption_lab = rlang::as_utf8_character("**Elaboração:** analisemacro.com.br"), title_accuracy = rlang::as_utf8_character("**Acurácia**: performance por horizonte"), subtitle_accuracy = rlang::as_utf8_character("Modelos de previsão do IPCA"), x_lab_accuracy = "Horizonte (meses)", save_at = "docs" )
y |
Column name of the variable of interest |
data |
A tsibble object, similar to the output of |
accuracy |
A tibble object, similar and with the same column names as the output of |
forecast |
A tsibble object, similar to the output of |
ensemble_col |
Column name of ensemble forecasts in |
title_fanchart |
Title for the forecast fanchart |
y_lab_fanchart |
Fanchart Y-axis title |
caption_lab |
Text for caption |
title_accuracy |
Title for predictive horizon accuracy graph ( |
subtitle_accuracy |
Subtitle for the accuracy graph by predictive horizon ( |
x_lab_accuracy |
X-axis text in accuracy graph by predictive horizon ( |
save_at |
Directory name to save the HTML file, if it does not exist it will be created |
Flexdashboard HTML file named as index.html
.
td <- tempdir() build_dashboard(save_at = td)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.