Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
@christopherkenny
christopherkenny
Follow
View christopherkenny's full-sized avatar

Christopher T. Kenny christopherkenny

Postdoc@princeton-ddss.Redistricting and rstats. Harvard Government PhD '25. Cornell '19.

Highlights

  • Pro

Organizations

@alarm-redist

Block or report christopherkenny

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more aboutblocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more aboutreporting abuse.

Report abuse

I am a Postdoctoral Research Associate atPrinceton Data-Driven Social Science. I received a PhD in Government from Harvard University. I research redistricting, elections, and the uses and usability of census data. I am a founding member and co-PI of theALARM Project. In 2022, I was a fellow at theElection Law Clinic at Harvard Law School, where I developedRPV Near Me(source code).

This readme is mostly a table of contents for my GitHub repositories (and some others that I contribute to). For more information on my research, see mywebsite orCV. Find me onTwitter,Bluesky, orThreads.

Packages on CRAN

These are packages that are stable and usable. They are on CRAN and in are in regular use.

PackageDescription
redistTools for redistricting sampling. Used frequently in research and litigation.
redistmetricsMeasures and metrics for assessing redistricting plans
geomanderSpatial tools designed for interfacing election data, precincts, and census data
PL94171Read inPL 94-171 Census data, the redistricting files.
censableDownload the most frequently used demographic data and categories from the Census Bureau API.
ggredistggplot2 extensions and color palettes for election mapping.
tinytigerA developer-oriented interface to TIGER/Line Shapefiles. (You probably want to use Kyle Walker'stigris unless you're doing R 📦 development.)
cvapWork with the US Census Bureau'sCitizen Voting Age Population Special Tabulations.
ppmfRead in US Census Bureau Privacy Protected Microdata Files.
divsegCompute diversity and segregation indices.
dotsCreate dot density maps in R.
congressAn R interface to theCongress.gov API.
feltrWork with theFelt API so you can upload or read spatial data within existing workflows in R.
apportionAllocate seats based on population vectors by various different methods.
jotA GitHub friendly approach to saving and sharing statistics needed for writing papers in Quarto/RMarkdown.
nameCollected tools for working with pattern-based column names.
crayonsSome ggplot2 extensions for color palettes based on Crayola crayons.
gptzerorAn R interface to theGPTZero API for identifying so-called AI written text.
bskyrUse theBluesky Social HTTP API (XRPC) in R.
planscorerScore redistricting plans via thePlanScore API.
alarmdataWork with data generated fromALARM Project projects.
paletteUse apalette class which adds pretty console color printing.
bafLoad Census Bureau block assignment files and block equivalency files.
redistverseLoad in the wholeredist family at once.
opengraphParse Open Graph Protocol metadata
flexokiUse Steph Ango'sflexoki palettes in ggplot
typrCompile Typst documents from R.

Packages under development

These are packages that are actively under development and have not yet made it onto CRAN for one reason or another.

  • Stable packagesStatic Badge should give correct results, but may need a bit of work tightening up documentation or handling errors better.
  • Mostly stable packagesStatic Badge should give correct results, but have features left to implement or have R CMD Check issues.
  • Experimental packagesStatic Badge are entirely under development but willsomeday be good for wider use.
  • No promises packagesStatic Badge are also entirely under development but I make no guarantees to their usefulness, but hey itmight be better than nothing. Send me a tweet, email, or open an issue if you want to ask about specific features in these.
PackageDescriptionLifecycle
redistioAn interactive redistricting app run locally in ShinyStatic Badge
eiRun ecological inference models in R. This is a project with Shusei Eshima and Gary King to update Gary King and Molly Robert's original ei package from a decade ago.Static Badge
vfRead in publicly available voter files in R.Static Badge
manifestoCreate R project manifest files, designed for less restrictive coding environments (e.g., teaching, workshops)Static Badge
haControl your smart home from R using the Home Assistant APIStatic Badge
ggtigerggplot2 extensions for Princeton's brand guidelinesStatic Badge
adjA lightweight adjacency list classStatic Badge
lobbyInterface to the US Senate Lobbying Disclosure APIStatic Badge
prClassess for probabilities built onvctrsStatic Badge

Quarto and RMarkdown

Journal Templates

These are templates for journal submissions. These each modify a LaTeX template to let you write papers in a journal's submission style from Quarto or RMarkdown.

TemplateTypeJournal(s)
annual-reviewsQuartoAnnual Reviews
apsrQuartoAmerican Political Science Review
cambridge-mediumQuartoPolitical Analysis,Political Science Research and Methods,British Journal of Political Science,Annals of Actuarial Science,Network Science
natureQuartoSpringer Nature Journals
nowQuartonow Publishers journals, including theQJPS
oupQuartoOxford University Press journals, includingPOQ andPublius
pnasQuartoPNAS (for Research Articles)
pnas-siQuartoPNAS (for Supporting Information)
sciencerticlesScience,Science Advances
scientific-dataQuartoScientific Data (for Data Descriptors)
perspectivesQuartoPerspectives on Politics

Non-journal Quarto Templates

These are Quarto extensions which are not designed for submissions to academic journals.

ExtensionDescription
tufteProvides a Tufte-style document for Quarto using Typst, based onnogula/tufte-memo
ctk-articleA general purpose academic article template for Quarto using Typst
ctk-memoA general purpose memo template to aesthetically matchctk-article
ctk-syllabusA syllabus template for Quarto using Typst
ctk-legalAn expert report template for Quarto using Typst
cvA CV template using shortcodes from Quarto and Typst-powered YAML reading and formatting
projectorA Quarto extension for making slides withPolylux
harvard-dissA Quarto extension for writing a Harvard GSAS dissertation with a Typst backend

Quarto Extensions (Filters)

These are non-template extensions that can be added to any Quarto document.

ExtensionTypeDescription
wordcountfilterinserts a word count within a document in place of the placeholder{{wordcount}} or{{wordcountref}}
typst-functionfilterinserts a Typst function in the place of a div or span
spellcheckfilterruns Hunspell on render, printing mispelled words to the console

Other Repos

RepoDescription
christopherkenny.github.ioHome to the Quarto files that generatemy personal website.
christopherkennyHome of the readme that you are currently reading.
chicagoAn example workflow for combining city election data and census demographic data usinggeomander andcensable
redist_workshopA workshop taught with Tyler Simko at Harvard University on usingredist for research.
royaleStatic Badge An R package for accessing theAPI for the gameClash Royale.
clashStatic Badge An R package for accessing theAPI for the gameClash of Clans.
styler.quoteStatic Badge A third party extension to styler that modifies the tidyverse style guide to use correct quotes in R (the single' rather than captilized version")
luiggStatic Badge An R package with ggplot2 extensions for a Mario-style pipe bar graph and color schemes based on Mario games.
acronamesStatic Badge An R package for creating initialisms based on lists of words you want to use.
parrotStatic Badge An R package for including party parrots in RMarkdown.
ppmf_dataCompressed versions of Census Privacy Protected Microdata Files
cvap_dataPreprocessed versions of Census CVAP data, usable withcvap
universePackages list for generating myr-universe. I don't keep this super updated, but it has the big packages that are a pain to build from source from GitHub.
confLinks to public conference slides
legend-dynastyA series of automatically generated tables to a quarto website
bsky-cran-botA time-based Bluesky Social bot powered bybskyr and run on GitHub Actions
mt-enumerationEnumeration of all whole county plans with 1 person deviation in Montana for the 2020 cycle
kpfontsA copy of Christophe Caignaert and Daniel Flipo's kpfonts
rockland-sare-lawsuitReplication code for a blog post onSare v. Rockland County Board of Elections
projector-themesThemes for theprojector Quarto extension to create slides with Polylux

If there are otherpublic repos that aren't listed here that aren't forks, they are probably either newer than this Table of Contents, too small to be useful, not supported but I don't want to delete them, or course-related. If you see something that you're interested in knowing more about, send me a tweet or email or just open an issue in the repo.

PinnedLoading

  1. alarm-redist/redistalarm-redist/redistPublic

    Simulation methods for legislative redistricting.

    C++ 72 27

  2. bskyrbskyrPublic

    Interact with Bluesky Social

    R 28 6

  3. geomandergeomanderPublic

    Geographic Tools for Studying Gerrymandering

    R 15 2

  4. censablecensablePublic

    Making Census Data More Usable

    R 8 1

  5. congresscongressPublic

    Access the Congress.gov API

    R 17 1

  6. CoryMcCartan/PL94171CoryMcCartan/PL94171Public

    Tabulate P.L. 94-171 Redistricting Data Summary Files

    Prolog 8 3


[8]ページ先頭

©2009-2025 Movatter.jp