Skip to content

Instantly share code, notes, and snippets.

View peterdalle's full-sized avatar

Peter M. Dahlgren peterdalle

View GitHub Profile
@yjunechoe
yjunechoe / Kernel estimation animation
Created February 20, 2021 01:33
Recreation of the animation of kernel estimation from "Visualizing How a Kernel Draws a Smooth Line" - https://www.walker-harrison.com/posts/2021-02-13-visualizing-how-a-kernel-draws-a-smooth-line/
## Code by Walker Harrison @walkwearscrocs
## From https://www.walker-harrison.com/posts/2021-02-13-visualizing-how-a-kernel-draws-a-smooth-line/
library(tidyverse)
theme_set(theme_bw())
set.seed(0)
n <- 100
x <- runif(n, 0, 4*pi)
We can't make this file beautiful and searchable because it's too large.
# Data source: Statistics Sweden
# No data on county and municipality level if count < 3
# No data on country level if count < 2
"sex","county_code","county","municipality","municipality_code","name","count"
"male",NA,NA,NA,NA,"Aadam",2
"male",NA,NA,NA,NA,"Aadhiran",2
"female",NA,NA,NA,NA,"Aadya",3
"male",NA,NA,NA,NA,"Aahil",2
"female",NA,NA,NA,NA,"Aaliya",2
"female","12","Skåne län","Malmö","1280","Aaliyah",3