Skip to content

Instantly share code, notes, and snippets.

View napaxton's full-sized avatar

Nathan A. Paxton napaxton

  • Me
  • Washington, D.C.
View GitHub Profile
@jlsutherland
jlsutherland / gronke_levendusky_rep.R
Last active December 6, 2018 01:23
Replicate Levendusky (2009) Fig 3.7, add ANES 2016
library(tidyverse)
library(survey)
library(scales)
anes16 <- readstata13::read.dta13("~/Downloads/anes_timeseries_2016.dta")
anescdf <- readstata13::read.dta13("~/Downloads/anes_timeseries_cdf.dta") %>%
filter(VCF0004 %in% c(1984, 2004))
preference_vars <- c(
@benmarwick
benmarwick / 000_geom_bag.r
Last active January 5, 2025 01:16
Basic bagplot geom for ggplot2
#' Bagplot
#'
#' The bag geom is useful for graphical summaries of scatterplots. It
#' is effective at showing the location, spread, skewness, and
#' outliers of a data set.
#'
#' A bagplot is a bivariate generalization of the well known boxplot. It
#' was proposed by Rousseeuw, Ruts, and Tukey. This geom plots bagplots that
#' are very similar to the one described in Rousseeuw et al. and
#' uses code from their bagplot functions in the aplpack pacakge.
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
#EXTINF:-1,BBC - Radio 2
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
#EXTINF:-1,BBC - Radio 3
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls
#EXTINF:-1,BBC - Radio 4
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
#EXTINF:-1,BBC - Radio 5 live
@aaronwolen
aaronwolen / slides.md
Last active November 11, 2022 23:57
Pandoc template to generate reveal.js slideshows.

% Title % Name % Date

My first slide

List