added functions for bp with stat and tested them
This commit is contained in:
parent
873049b603
commit
c8e21b928c
4 changed files with 103 additions and 105 deletions
28
scripts/functions/test_lf_bp_with_stats.R
Normal file
28
scripts/functions/test_lf_bp_with_stats.R
Normal file
|
@ -0,0 +1,28 @@
|
|||
setwd("~/git/LSHTM_analysis/scripts/plotting/")
|
||||
|
||||
source("../functions/lf_bp_with_stats.R")
|
||||
|
||||
######################
|
||||
# call function
|
||||
######################
|
||||
# Note: Data
|
||||
# run other_plots_data.R
|
||||
# to get the long format data to test this function
|
||||
|
||||
lf_bp_with_stats(lf_df = lf_dynamut2
|
||||
, x_grp = "mutation_info"
|
||||
, y_var = "param_value"
|
||||
, facet_var = "param_type"
|
||||
, n_facet_row = 1
|
||||
, y_scales = "free_y"
|
||||
, p_title = "Dynamut2"
|
||||
, colour_categ = "ddg_dynamut2_outcome"
|
||||
, stat_grp_comp = c("DM", "OM")
|
||||
, stat_method = "wilcox.test"
|
||||
, my_paired = FALSE
|
||||
#, stat_label = "p.format")
|
||||
, stat_label = c("p.format", "p.signif")
|
||||
, my_ats = 22 # axis text size
|
||||
, my_als = 20 # axis label size
|
||||
, my_fls = 20 # facet label size
|
||||
, my_pts = 22 )# plot title size
|
Loading…
Add table
Add a link
Reference in a new issue