Description Usage Arguments Value
View source: R/barplot_12months.R
Builds a barplot depicting the evolution of job creation over time. Each bar indicates the jobs created/destroyed in a 12-month period. Colors represent economic sectors (IBGE's "big-five"). Labels joined by dashed lines show the net job creation of each 12-month period.
1 2 3 4 5 6 7 8 9 10 11 | barplot_12months(
df,
mes_inicio = NA,
mes_fim = NA,
labs_title = str_c("Empregos no Estado de SP - Evolução do Saldo Acumulado ",
mes_inicio, "-", mes_fim),
labs_subtitle = "Contribuição de cada setor",
labs_caption = "Fonte: Elaboração própria a partir de dados do CAGED.",
labs_x = "Período",
labs_y = "Postos de trabalho (milhares)"
)
|
df |
A dataframe with CAGED micro-data. |
mes_inicio |
Optional integer ranging from 1 to 12. |
mes_fim |
Optional integer ranging from 1 to 12. |
labs_title |
Optional character string with plot title. |
labs_subtitle |
Optional character string with plot subtitle. |
labs_caption |
Optional character string with plot caption. |
labs_x |
Optional character string with x-axis title. |
labs_y |
Optional character string with y-axis title. |
A ggplot2 plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.