Description Usage Arguments Value
View source: R/barplot_monthly.R
Builds a barplot depicting the evolution of job creation over time, by month. Each bar indicates the jobs created/destroyed in a month. Colors represent economic sectors (IBGE's "big-five"). Labels joined by dashed lines show monthly net job creation.
1 2 3 4 5 6 7 8 9 10 11 | barplot_monthly(
df,
inicio = NA,
fim = NA,
incluir_ano_x = FALSE,
labs_title = "Empregos no Estado de SP - Evolução mensal",
labs_subtitle = "Contribuição de cada setor",
labs_caption = "Fonte: Elaboração própria a partir de dados do CAGED.",
labs_x = "Mês",
labs_y = "Postos de trabalho (milhares)"
)
|
df |
A dataframe with CAGED micro-data. |
inicio |
Optional string indicating the starting month, if one does not to use all available data. Recommended format: YYYY-MM. |
fim |
Optional string indicating the final month, if one does not to use all available data. Recommended format: YYYY-MM. |
incluir_ano_x |
|
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.