mgaldino / r_we_the_people

R package for working with the We The People petition data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R We The People?

An R Package for working with the White House's We The People API.

The package is currently focused on loading petition data, running ad-hoc analysis and exploratory visualizations.

Usage

install.packages('wethepeople')

library(wethepeople)
example(wethepeople)

# Load petitions
client <- WeThePeopleClientAPI()
petitions <- client$petitions()

# Make some eye candy
plot_issues_over_time(petitions)
plot_issues_pending_response(petitions)

Examples

There following images were generated using the package examples.

Petition Issues Over Time

issues issues

Status by Creation Date

issues

All Petitions' Title Word Cloud

title wordcloud

All Petitions' Body Word Cloud

body wordcloud

Single Petition Body and Title Word Cloud

body wordcloud

body wordcloud

body wordcloud

body wordcloud

About

R package for working with the We The People petition data.


Languages

Language:R 100.0%