Skip to content

Instantly share code, notes, and snippets.

# reference: https://gist.github.com/andrewheiss/51f60fc2a410ca0d321d942153b955e7
library(tidyverse)
library(wakefield) # For fancy data generation
library(truncnorm) # Truncated normal distributions
library(ggridges) # Ridge plots
# Make all the random draws consistent
set.seed(1234)
@jnaecker
jnaecker / casey-sex-ratio.r
Last active March 1, 2019 19:05
Helping out Casey Wichman
library(gender)
library(genderdata)
library(ggplot2)
library(dplyr) # so we can pipe with %>%
library(purrr) # gives us the map function
library(tidyr) # lets us unnest the output from purrr::map
graph_sex_ratio <- function(name, years = c(1950:2010)){
tibble(year = years) %>%
@jnaecker
jnaecker / git+overleaf+github.md
Last active June 24, 2023 01:29
Using Overleaf as your TeX editor but getting your files to Github

git + overleaf + github

Setup

Connect Overleaf and your local repo

  1. Make a new project on Overleaf.
  2. In the share menu, copy the link from "Clone with git"
  3. On your computer:
    • use cd to navigate to where you want to put your project