Skip to contents

As in golemworldbank: one line per indicator, in the colors of the Country Comparison, named with its unit in the legend, at the top of the plot. The axis takes the unit when all the indicators share it. An indicator without values for the country is left out.

Usage

plot_indicator_comp(data, country, indicators)

Arguments

data

Data frames from get_indicator(), one per indicator, named by its id.

country

Eurostat code of the country, such as "EL", or "EU27_2020".

indicators

The ids of the indicators in indicators().

Value

A plotly object, or NULL when none of the indicators has values for the country.

Examples

data <- list(
  unemployment = saved_indicator("unemployment"),
  youth_unemployment = saved_indicator("youth_unemployment")
)
plot_indicator_comp(data, "EL", names(data))