View source: R/plot_unemployment.R
| plot_unemployment | R Documentation |
Generates a ggplot2 line chart of Brazil's unemployment rate
(PNAD Contínua) using data returned by get_unemployment().
plot_unemployment(data, language = "eng")
data |
Tibble or data.frame returned by |
language |
Language of plot labels:
|
A ggplot2 object.
# Example 1: English version
unemployment_data <- get_unemployment("2020", "2024")
unemployment_plot <- plot_unemployment(unemployment_data)
print(unemployment_plot)
# Example 2: Portuguese version
dados_desemprego <- get_unemployment("2020", "2024")
grafico_desemprego <- plot_unemployment(dados_desemprego, language = "pt")
print(grafico_desemprego)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.