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

issues

All Petitions' Title Word Cloud

title wordcloud

title wordcloud

All Petitions' Body Word Cloud

body wordcloud

body wordcloud

Single Petition Body and Title Word Cloud

body wordcloud

body wordcloud

body wordcloud

body wordcloud

body wordcloud

body wordcloud

body wordcloud

body wordcloud