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(ggplot2) | |
library(datasauRus) | |
library(gganimate) | |
p <- ggplot(datasaurus_dozen, aes(x = x, y = y, frame = dataset)) + | |
geom_point() + | |
theme(legend.position = "none") | |
gg_animate(p, title_frame = FALSE) |
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
# demo using the ewastools package to estimate leukocyte composition from a public 450k sample | |
# using results learned from HRS (see preprint https://www.biorxiv.org/content/10.1101/2022.11.28.518190v1.full) | |
if("ewastools" %in% rownames(installed.packages()) == FALSE){ | |
install.packages("BiocManager") | |
BiocManager::install("illuminaio") | |
remotes::install_github("hhhh5/ewastools") # at least v1.7.1 | |
} | |
library(ewastools) |