dadded v2 of barplot layput

This commit is contained in:
Tanushree Tunstall 2022-08-14 22:56:08 +01:00
parent da8f8d90d4
commit 7c40e13771
7 changed files with 800 additions and 79 deletions

View file

@ -17,17 +17,17 @@ theme_set(theme_grey())
stability_count_bp <- function(plotdf
, df_colname = ""
, leg_title = ""
, ats = 25 # axis text size
, als = 22 # axis label size
, lts = 20 # legend text size
, ltis = 22 # label title size
, ats = 12#25 # axis text size
, als = 11#22 # axis label size
, lts = 10#20 # legend text size
, ltis = 11#22 # label title size
, geom_ls = 10 # geom_label size
, yaxis_title = "Number of nsSNPs"
, bp_plot_title = ""
, label_categories #= c("LEVEL1", "LEVEL2")
, title_colour = "chocolate4"
, subtitle_text = NULL
, sts = 20
, sts = 10#20
, subtitle_colour = "#350E20FF" #brown
#, leg_position = c(0.73,0.8) # within plot area
, leg_position = "top"
@ -45,7 +45,10 @@ stability_count_bp <- function(plotdf
, aes(label = ..count..)
, color = "black"
, show.legend = FALSE
, size = geom_ls) +
, size = geom_ls
#, nudge_x = 0
#, nudge_y = -1
, label.size = 0.25 ) +
theme(axis.text.x = element_blank()
, axis.title.x = element_blank()
, axis.title.y = element_text(size = als)
@ -53,6 +56,7 @@ stability_count_bp <- function(plotdf
, legend.position = leg_position
, legend.text = element_text(size = lts)
, legend.title = element_text(size = ltis)
, legend.key.size = unit(lts,"pt")
, plot.title = element_text(size = als
, colour = title_colour
, hjust = 0.5)