config files
This commit is contained in:
parent
0cc7a8fcae
commit
2e29cf8011
3 changed files with 19 additions and 11 deletions
|
@ -97,8 +97,9 @@ bp_stability_hmap <- function(plot_df = merged_df3
|
|||
# Generate the subcols barplot
|
||||
cowplot::plot_grid(
|
||||
ggplot(plot_df, aes_string(x = xvar_colname
|
||||
# , ordered = T)
|
||||
)) +
|
||||
#, ordered = T
|
||||
)
|
||||
) +
|
||||
geom_bar(aes(fill = group)
|
||||
, colour = "grey", size=0.125) +
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ LogoPlotSnps <- function(plot_df
|
|||
, omit_snp_count = c(0) # can be 1, 2, etc.
|
||||
, my_logo_col = "chemistry"
|
||||
, x_lab = "Position"
|
||||
, y_lab = "Count"
|
||||
, x_ats = 7 # text size
|
||||
, y_lab = "nsSNP Count"
|
||||
, x_ats = 6 # text size
|
||||
, x_tangle = 90 # text angle
|
||||
, y_ats = 10
|
||||
, y_tangle = 0
|
||||
|
@ -237,17 +237,21 @@ LogoPlotSnps <- function(plot_df
|
|||
, colour = xfont_bgc
|
||||
#, margin = margin(t = 0.1)
|
||||
)
|
||||
, axis.text.y = element_text(size = y_ats
|
||||
, angle = y_tangle
|
||||
, hjust = 1
|
||||
, vjust = -1.0
|
||||
, colour = yfont_bgc)
|
||||
, axis.text.y = element_blank()
|
||||
# , axis.text.y = element_text(size = y_ats
|
||||
# , angle = y_tangle
|
||||
# , hjust = 1
|
||||
# , vjust = -1.0
|
||||
# , colour = yfont_bgc)
|
||||
# , axis.title.x = element_text(size = x_tts
|
||||
# , colour = xtt_col)
|
||||
, axis.title.x = element_blank()
|
||||
, axis.title.y = element_text(size = y_tts
|
||||
, angle = 90
|
||||
, colour = ytt_col)
|
||||
, colour = ytt_col
|
||||
, margin = margin(t = 0, r = 0, b = 20, l = 0)
|
||||
#, hjust = -2
|
||||
)
|
||||
|
||||
, plot.background = element_rect(fill = theme_bgc, colour=NA)
|
||||
) +
|
||||
|
@ -269,11 +273,12 @@ LogoPlotSnps <- function(plot_df
|
|||
, legend.position = "none"
|
||||
, axis.text.x = element_blank()
|
||||
, axis.text.y = element_blank()
|
||||
#, axis.text.y = element_text()
|
||||
, axis.title.x = element_blank()
|
||||
, axis.title.y = element_blank()
|
||||
, plot.background = element_rect(fill = theme_bgc, colour=NA)
|
||||
) +
|
||||
labs(x=NULL, y=NULL)
|
||||
labs(x=NULL, y="WT")
|
||||
|
||||
anno_bar = position_annotation(plot_df,
|
||||
bg = theme_bgc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue