Skip to content

yoni/r_we_the_people

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages