Skip to content

andeliton/monitor_legislativo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor Legislativo (Legislative Monitor)

R Shiny


English

About the Project

This repository contains a dashboard built with R and Shiny to visualize voting data from the Brazilian Chamber of Deputies. The application allows users to filter votes by year, party, and state, providing a clear view of parliamentary behavior.

Note: The application interface is in Portuguese, as the source data is from the Brazilian legislative system.

Features

  • Government Support Rate: Calculates the alignment percentage of MPs with the government's official orientation.
  • Vote Tracking: A searchable table displaying individual votes for every bill.
  • Thematic Overview: Visualizes the volume of different types of legislative proposals (PECs, PLs, MPs).
  • Data Export: Allows users to download filtered data (CSV) and charts (PNG).

Technologies

  • R / Shiny: Main framework for the web application.
  • bslib: Used for the user interface (based on Bootstrap 5).
  • Arrow (Parquet): Used for efficient reading of historical datasets.
  • Tidyverse: Used for data manipulation.

How to Run

  1. Clone this repository.
  2. Open the project in RStudio.
  3. Run the setup script to install dependencies:
    source("setup.R")
  4. Open app.R and click Run App.

🇧🇷 Português

Sobre o Projeto

Este repositório contém um dashboard desenvolvido em R e Shiny para visualizar dados de votações nominais da Câmara dos Deputados. A aplicação permite filtrar votações por ano, partido e estado, oferecendo uma visão clara do comportamento parlamentar.

Funcionalidades

  • Taxa de Governismo: Calcula o percentual de alinhamento dos deputados com a orientação oficial do Governo.
  • Rastreamento de Votos: Tabela pesquisável mostrando o voto individual em cada matéria.
  • Visão Temática: Visualiza o volume de diferentes tipos de proposições (PECs, PLs, MPs).
  • Exportação de Dados: Permite baixar os dados filtrados (CSV) e os gráficos gerados (PNG).

Tecnologias

  • R / Shiny: Framework principal da aplicação web.
  • bslib: Utilizado para a interface de usuário (baseado em Bootstrap 5).
  • Arrow (Parquet): Utilizado para leitura eficiente das bases de dados históricas.
  • Tidyverse: Utilizado para manipulação de dados.

Como Executar

  1. Clone este repositório.
  2. Abra o projeto no RStudio.
  3. Rode o script de configuração para instalar as dependências:
    source("setup.R")
  4. Abra o arquivo app.R e clique em Run App.

Developed by Andéliton Soares

About

🏛️ Interactive dashboard analyzing voting behavior and government alignment in the Brazilian Chamber of Deputies. Features nominal vote tracking, thematic classification, and high-performance data processing with R, Shiny, and Arrow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages