barplot_monthly: Barplot showing the monthly evolution of job creation

Description Usage Arguments Value

View source: R/barplot_monthly.R

Description

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.

Usage

 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)"
)

Arguments

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

logical. If TRUE, x-axis labels include the year of each month. Recommended when plotting months of more than a single year. Defaults to FALSE.

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.

Value

A ggplot2 plot.


andremenegatti/cagedExplorer documentation built on July 1, 2020, 1:25 a.m.