-
Notifications
You must be signed in to change notification settings - Fork 0
1. Demonstration dashboards
Two different demonstration dashboards are available, containing different structure, indicators, visualisation elements and interpretations, but both built from public data.
The demo dashboards are derived from two alternative scenarios that are proposed as use cases:
- Eurostatistics: This scenario was designed for the dissemination of Eurostat data on short-term economic analysis.
- NSI: The general structure of this scenario was specifically designed to allow different National Statistical Institutions (NSIs) sharing short-term economic analysis of national indicators among different end users.
A sample dashboard of the Eurostatistics scenario is available by
calling the main function generate_dashboard(output_path)
. In this
function, the output_path
parameter is the absolute path to the folder
where the resulting html file will be saved. By running this function,
you will save the sample dashboard as an html file into the
output_path
folder. Apart from the html file, a new folder named
visualisation_files
will be also saved in your output_path
folder.
This new folder will contain additional resources required for the
dashboard that ensure the resulting html file has a moderate size even
if many visualisation elements are included in the final dashboard.
Below you can find a screenshot took from the resulting html:

The sample version of the NSI scenario is built on public national data
from Italy collected from ISTAT website in
January 2024. This was done with the only aim of exploring feasibility aspects
and it should not be considered as an official ISTAT output.
To generate this sample dashboard, first we will have to
call the update_scenario("nsi")
function, passing the text nsi
as
parameter, allowing us to switch into the NSI scenario. Additionally, you have to call the fallowing functions:
update_data("library_path/eurostatRTool/extdata/data-italy.csv")
update_forecasts("library_path/eurostatRTool/extdata/forecasts-italy.xlsx")
update_dim_labels("library_path/eurostatRTool/extdata/dim-labels-italy.csv")
update_dashboard_structure("library_path/eurostatRTool/extdata\\dashboard-structure-italy.xlsx")
where library_path
is your folder with R packages, which you can find using .libPaths()
.
We can then generate the new dashboard by
calling the main function generate_dashboard(output_path)
, where the
output_path
parameter is the absolute path to the folder where the
resulting html file will be saved. As for the Eurostatistics
demonstration dashboard above, this function will save the NSI
demonstration dashboard as an html file into the output_path
folder.
Below a screenshot took from the resulting html.

Apart from the differences in the general layout and the different data and visualisation elements displayed for demonstration purposes, we can notice that both scenarios (Eurostatistics and NSI scenarios) differ in their main structure, having different topics in their respective main menus.
For the Eurostatistics dashboard, these topics include: Overview, Economy, Business and Trade, Labour Market, Cyclical Indicators, Trend-Cycle Estimates, and Forecasts.
Meanwhile, the NSI dashboard presents: Overview, Economic Situation, Prices Outlook, Foreign Trade, and Labour Market Outlook.
While all other options are customisable: colours, titles, headers, footer, logo, data, indicators, visualisation modes, etc., the topics structuring the main menu in the two scenarios are not customisable.