added logo_plot function and test to check it
This commit is contained in:
parent
344a74a9e1
commit
426a5cb0b5
2 changed files with 200 additions and 0 deletions
27
scripts/functions/tests/test_logo_plots_func.R
Normal file
27
scripts/functions/tests/test_logo_plots_func.R
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
#source("~/git/LSHTM_analysis/config/gid.R")
|
||||
#source("~/git/LSHTM_analysis/scripts/plotting/get_plotting_dfs.R")
|
||||
|
||||
|
||||
LogoPlotCustomH (plotdf = merged_df3
|
||||
, x_axis_colname = "position"
|
||||
, y_axis_colname = "or_mychisq"
|
||||
, symbol_colname = "mutant_type"
|
||||
, y_axis_log = T
|
||||
, log_value = log10
|
||||
, my_logo_col = 'hydrophobicity'
|
||||
#, theme_bgc
|
||||
# , xfont_bgc
|
||||
# , yfont_bgc
|
||||
, 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 = 25 # title size
|
||||
, y_tts = 20
|
||||
, leg_pos = "none"
|
||||
, leg_ts = 15 # leg text size
|
||||
, leg_tts = 16 # leg title size
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue