Code Monkey home page Code Monkey logo

anfavea's Introduction

anfavea

Dados da ANFAVEA no R.

Installation

devtools::install_github("tomasbarcellos/anfavea")

Example

Emprego

library(anfavea)
library(tidyverse)

theme_set(
  theme_classic() + 
    theme(legend.position = "bottom")
)

empregos %>% 
  filter(valor > 0) %>% 
  ggplot(aes(mes, valor, col = tipo)) +
  geom_line(size = 1) + 
  ggtitle("Empregos na producao automotiva desde 1985")

Exportacoes

exportacoes %>% 
  filter(mes >= as.Date("2000-01-01"), tipo != "total") %>% 
  ggplot(aes(mes, valor, fill = tipo)) +
  geom_area(size = 1, stat = "identity", position = "fill") +
  ggtitle("Evolucao da participacao das exportacoes desde 2000")

Licenciamento e producao

veiculos %>% 
  filter(valor > 0, mes >= as.Date("2000-01-01"), 
         variavel == "Licenciamento Importados") %>% 
  ggplot(aes(mes, valor, col = veiculo)) +
  geom_line(size = 1) +
  ggtitle("Evolucao do licenciamento de veiculos importados desde 2000")

Maquinas

maquinas %>% 
  filter(valor > 0, mes >= as.Date("2000-01-01"), 
         variavel == "Produção", maquina != "TRATORES DE RODAS") %>% 
  ggplot(aes(mes, valor, col = maquina)) +
  geom_line(size = 1) +
  ggtitle("Evolucao da producao de maquinas desde 2000") + 
  guides(col = guide_legend(nrow = 2, byrow = TRUE))

anfavea's People

Contributors

tomasbarcellos avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.