R package for working with the We The People petition data.
R
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
data
examples
man
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
NEWS
README.md

README.md

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