Home — Curriculum Vitae (CV) — Teaching & Syllabi — Visualizations — R Packages — Data Sets & Replication Materials — Parola del giorno — Currents in U.S. Foreign Policy – FDI Atlas (new)
I have developed two R packages.
In the summer of 2026, I spent nearly three months (re)learning how to code and develop packages as well as learning how to code HTML, CSS, and Javascript again after many years. When I started my PhD in 2016, I was required to take a class on quantitative methods, and I found that learning to code in R and Stata was not only "fun" (relatively speaking) but also made me realize how much I enjoyed making things in code. I am not the most efficient or best coder at all, and I am sure there are better ways to create what I did.
Both packages solved problems in my workflow, so I hope that others find them useful.
Neither package is available on CRAN, but I hope to finalize and publish them there soon.
I work with a lot of large data sets on trade to study sanctions busting and other aspects of economic statecraft, and I was trying to find a way to visualize relationships more dynamically. offlinealtas is the culmination of that work, and I tried to make the package as approachable and straightforward as possible.
GitHub Repository: https://github.com/preblek/offlineatlas
Vignettes, Examples, and Tutorial: https://preblek.github.io/offlineatlas/index.html
APSA Pre-Print: "Portable Interactive Atlases for Political Science Research," https://preprints.apsanet.org/engage/apsa/article-details/6aef45d1d02d1c3f6401efdb
I developed binwise because I was struggling with findings for a paper I was writing (see the pre-print below). While I do not think the package is all that, I figured if I found it helpful, other people might, also.
GitHub Repository: https://github.com/preblek/binwise
Vignettes, Examples, and Tutorial: https://preblek.github.io/binwise/
APSA Pre-Print: "Commercial Embeddedness and Sanctions Busting: Intra-Industry Trade, Dependence, and Economic Asymmetry," https://preprints.apsanet.org/engage/apsa/article-details/6af7b40fd0644763b81c328a