Skip to content

Commit 61cf681

Browse files
committed
added title to plot
1 parent 4a078c0 commit 61cf681

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

workflow/scripts/plot_enrichment.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ for (i in sheets) {
2929
df$Ratio <- str_split(df$Overlap, "/") %>%
3030
map_dbl(~ as.numeric(.x[1]) / as.numeric(.x[2]))
3131

32-
# Wrap term longer than 60 characters over multiple lines
32+
# Wrap terms longer than 60 characters over multiple lines
3333
df$Term <- str_wrap(df$Term, 60)
3434

3535
# Relevel terms to avoid alphabetical sorting
@@ -51,7 +51,8 @@ for (i in sheets) {
5151
theme(axis.text.x = element_text(angle = 45,
5252
hjust = 1)) +
5353
labs(x = "-log10(Adjusted P value)",
54-
y = NULL)
54+
y = NULL) +
55+
ggtitle(i)
5556

5657
# Save plot
5758
ggsave(paste0(dir_name, "/", i, ".pdf"),

0 commit comments

Comments
 (0)