Skip to content

Instantly share code, notes, and snippets.

View bsurial's full-sized avatar
:atom:
going viral

Bernard Surial bsurial

:atom:
going viral
View GitHub Profile
@bsurial
bsurial / raincloud-plot
Last active March 27, 2021 17:15
Raincloud Plot
# Code by C. Scherrer, Source: https://z3tt.github.io/OutlierConf2021/
library(tidyverse)
library(ggdist)
library(ggtext)
library(palmerpenguins)
## calculate bill ratio and summary stats
df_peng_stats <-
penguins %>%
library(tidyverse)
library(data.table)
# Create som edata
dates <- tibble(id = 1,
labdate = lubridate::dmy(c("01-01-2010", "01-02-2010", "01-03-2010")))
fupdate <- tibble(id = 1,
fupdate = lubridate::dmy("02-02-2010")) %>%
#set window of +/- 14 days