Skip to content
Snippets Groups Projects
Commit f3bfb8a9 authored by Jeffrey Pullin's avatar Jeffrey Pullin
Browse files

Add script to save raw figures as pdfs for talks

parent b194b8d9
No related branches found
No related tags found
No related merge requests found
Pipeline #10300 passed
library(ggplot2)
library(dplyr)
source(here::here("code", "plot-utils.R"))
label_pars <- c(
"scanpy_wilcoxontiecorrect_rankby_abs",
"scanpy_t_rankby_abs",
"edger_ql",
"scran_t_any",
"nsforest",
"scran_wilcox_some",
"cepo",
"rankcorr_2",
"seurat_negbinom",
"limma_trend",
"glmgampoi",
"seurat_t",
"seurat_MAST",
"scanpy_wilcoxon_rankby_abs",
"presto"
)
fig_paths <- list.files(here::here("figures", "raw"), full.names = TRUE)
for (i in seq_along(fig_paths)) {
fig_path <- fig_paths[[i]]
n <- nchar(basename(fig_path))
file_name <- paste0(substr(basename(fig_path), 1, n - 4), ".pdf")
ggsave(
filename = here::here("figures", "talk", file_name),
plot = readRDS(fig_path),
width = 8,
height = 8,
units = "in"
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment