- Make a new project on Overleaf.
- In the share menu, copy the link from "Clone with git"
- On your computer:
- use
cd
to navigate to where you want to put your project
- use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) %>% |