barplot_12months: Barplot showing the evolution of job creation through...

Description Usage Arguments Value

View source: R/barplot_12months.R

Description

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.

Usage

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

Arguments

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.

Value

A ggplot2 plot.


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