added logoP_snp.R and renamed logo_plots_func.R to logoP.R

This commit is contained in:
Tanushree Tunstall 2022-01-14 16:09:57 +00:00
parent f27b536157
commit f640087922
3 changed files with 253 additions and 32 deletions

View file

@ -1,28 +0,0 @@
#source("~/git/LSHTM_analysis/config/gid.R")
#source("~/git/LSHTM_analysis/scripts/plotting/get_plotting_dfs.R")
LogoPlotCustomH (plot_df = merged_df3
, x_axis_colname = "position"
, y_axis_colname = "or_mychisq"
, symbol_colname = "mutant_type"
, y_axis_log = F
, log_value = log10
, rm_empty_pos = F
, my_logo_col = 'hydrophobicity'
, x_lab = "Position"
, y_lab = "Odds Ratio"
, x_ats = 12 # text size
, x_tangle = 90 # text angle
, y_ats = 22
, y_tangle = 0
, x_tts = 19 # title size
, y_tts = 22
#, leg_pos = c(0.05,-0.12)
, leg_pos = "top"
, leg_dir = "horizontal"
, leg_ts = 15 # leg text size
, leg_tts = 16 # leg title size
)