Skip to content

Instantly share code, notes, and snippets.

Avatar

Ilya Kashnitsky ikashnitsky

View GitHub Profile
@ikashnitsky
ikashnitsky / twitter-b-census.R
Created Nov 21, 2020
First letter of the quote tweet author last name who replied to https://twitter.com/rafaelotinoco/status/1329622292507267073
View twitter-b-census.R
#===============================================================================
# 2020-11-21 -- twitter
# B census in replies to the joke tweet
# https://twitter.com/rafaelotinoco/status/1329622292507267073
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
# analyse the first surname letter of those replied to the meme
# the prevalence of simila jokes from B people was so obvious
View turkey-1960-pop-pyramid.R
#===============================================================================
# 2020-10-19 -- twitter
# Turkey population pyramid 1960
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(tidyverse)
library(magrittr)
library(hrbrthemes)
options(scipen = 999)
View improve-plot.r
#===============================================================================
# 2020-06-19 -- twitter
# improve plot
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
# the challenge
# https://community.storytellingwithdata.com/exercises/one-little-changeand-a-redesign
library(tidyverse)
View my-tweets.R
#===============================================================================
# 2020-05-27 -- twitter
# explore the timing of my twitter activity
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(tidyverse)
library(rtweet)
library(lubridate)
library(ggdark)
View my-twitter-likes.R
#===============================================================================
# 2020-05-26 -- twitter
# who I like
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(tidyverse)
library(rtweet)
library(ggdark)
library(rcartocolor)
@ikashnitsky
ikashnitsky / noymer-gut-check.r
Created May 6, 2020
Andrew Noymer's US death tolls gut-check estimates published daily on Twitter
View noymer-gut-check.r
#===============================================================================
# 2020-05-06 -- twitter
# Andrew Noymer's update of the total US covid deaths
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(rtweet)
library(httr)
library(tidyverse)
library(hrbrthemes)
@ikashnitsky
ikashnitsky / talk-links-st.andrews.md
Last active Apr 17, 2020
Links for the talk on COVID-19 given to St. Andrews demographers
View talk-links-st.andrews.md
@ikashnitsky
ikashnitsky / explain-map-borders.R
Last active Apr 8, 2020
Give an example how and why to use line borders instead of polygons outlines in maps -- https://twitter.com/ikashnitsky/status/1247870651878256643
View explain-map-borders.R
#===============================================================================
# 2020-04-08 -- twitter
# Showcase the map hack -- use border lines instead of polygon outlines
# https://twitter.com/ikashnitsky/status/1247870651878256643
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(tidyverse)
library(sf)
@ikashnitsky
ikashnitsky / countries-as-snowflakes.R
Last active Dec 12, 2019
Generate snowfall -- every snowflake scaled to a country population size ^1/3
View countries-as-snowflakes.R
#===============================================================================
# 2019-12-12 -- twitter
# Generate snowfall -- every snowflake scaled to a country population size ^1/3
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
library(tidyverse)
library(magrittr)
library(gganimate)
@ikashnitsky
ikashnitsky / us-names-median-age.R
Last active Dec 9, 2019
Median age of the US living persons with a specific name -- https://twitter.com/ikashnitsky/status/1201770729282424832
View us-names-median-age.R
#===============================================================================
# 2019-12-08 -- digital dem
# Lab 1 -- Popularity of the US names
# Ilya Kashnitsky, ilya.kashnitsky@gmail.com
#===============================================================================
# Data: https://www.ssa.gov/oact/babynames/limits.html
# Post: https://fivethirtyeight.com/features/how-to-tell-someones-age-when-all-you-know-is-her-name
# Gist: https://gist.github.com/ikashnitsky/654965cb971f3a11928806c4d0a0ef23
# Tweet: https://twitter.com/ikashnitsky/status/1201770729282424832
You can’t perform that action at this time.