Skip to content

Commit

Permalink
Update figures - make more legible
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Murphy committed Jul 8, 2022
1 parent e407871 commit ffe2de9
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 244 deletions.
45 changes: 23 additions & 22 deletions analysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ knitr::opts_chunk$set(
comment = "#>",
#root.dir = root.dir
fig.height = 6,
fig.width = 7.00787 #178mm
fig.width = 8 #178mm
)
knitr::opts_knit$set(#root.dir = root.dir,
dpi = 350)
Expand Down Expand Up @@ -102,7 +102,8 @@ q10 <- c(
"cadetblue4",
"cadetblue2"
)
size1 <- 7.4
size2 <- 10.5
all_n_ind <- c(5,10,20,30,40)
all_n_cells <- c(50,100,250,500)
tmp <- expand.grid(all_n_ind, all_n_cells)
Expand Down Expand Up @@ -140,11 +141,11 @@ plt_mcc1 <-
scale_colour_manual(values=q10)+
labs(colour='Method',y="Matthews Correlation Coefficient (MCC)",
x="Number of Individuals - Number of cells")+
theme(axis.text.x = element_text(size=6),
axis.text.y = element_text(size=6),
axis.title.x = element_text(size=9),
axis.title.y = element_text(size=9),
legend.text = element_text(size=9),
theme(axis.text.x = element_text(size=size1),
axis.text.y = element_text(size=size1),
axis.title.x = element_text(size=size2),
axis.title.y = element_text(size=size2),
legend.text = element_text(size=size2),
legend.title = element_blank())
#plot top 4
plt_mcc2 <-
Expand All @@ -159,11 +160,11 @@ plt_mcc2 <-
theme_cowplot()+
labs(colour='Method',y="Matthews Correlation Coefficient (MCC)",
x="Number of Individuals - Number of cells")+
theme(axis.text.x = element_text(size=6),
axis.text.y = element_text(size=6),
axis.title.x = element_text(size=9),
theme(axis.text.x = element_text(size=size1),
axis.text.y = element_text(size=size1),
axis.title.x = element_text(size=size2),
axis.title.y = element_blank(),
legend.text = element_text(size=9),
legend.text = element_text(size=size2),
legend.title = element_blank())+
#get matching colours for DEG approaches from full graph
scale_colour_manual(values=q10[c(1,3,4,7)])
Expand Down Expand Up @@ -232,11 +233,11 @@ ggplot(mcc_res_imbal)+
scale_colour_manual(values=q10)+
labs(colour='Method',y="Matthews Correlation Coefficient (MCC)",
x="Number of Individuals - Number of cells")+
theme(axis.text.x = element_text(size=6),
axis.text.y = element_text(size=6),
axis.title.x = element_text(size=9),
axis.title.y = element_text(size=9),
legend.text = element_text(size=9),
theme(axis.text.x = element_text(size=size1),
axis.text.y = element_text(size=size1),
axis.title.x = element_text(size=size2),
axis.title.y = element_text(size=size2),
legend.text = element_text(size=size2),
legend.title = element_blank())
```

Expand Down Expand Up @@ -312,12 +313,12 @@ for(prop_i in prop_DEGs){
labs(colour='Method',y="1 - Type 2 error",
x="Type 1 error")+
ggtitle(as.character(prop_i))+
theme(plot.title = element_text(size = 9, face = NULL),
axis.text.x = element_text(size=6),
axis.text.y = element_text(size=6),
axis.title.x = element_text(size=9),
axis.title.y = element_text(size=9),
legend.text = element_text(size=9),
theme(plot.title = element_text(size = size2, face = NULL),
axis.text.x = element_text(size=size1),
axis.text.y = element_text(size=size1),
axis.title.x = element_text(size=size2),
axis.title.y = element_text(size=size2),
legend.text = element_text(size=size2),
legend.title = element_blank())
}
Expand Down
Loading

0 comments on commit ffe2de9

Please sign in to comment.