From 4640f9024a68a7e9ba27f2eabb785bb753b06ce2 Mon Sep 17 00:00:00 2001 From: Tanushree Tunstall Date: Tue, 11 Oct 2022 14:19:39 +0100 Subject: [PATCH] remove empty LF files --- scripts/functions/lf_bp2.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/functions/lf_bp2.R b/scripts/functions/lf_bp2.R index 90200b8..a6be427 100644 --- a/scripts/functions/lf_bp2.R +++ b/scripts/functions/lf_bp2.R @@ -61,9 +61,12 @@ lf_bp2 <- function(lf_df #lf_duet } my_comparisonsL <- list( stat_grp_comp ) + ymax_abs = max(abs(lf_df$param_value)) + ggplot(lf_df, aes_string(x = x_grp, y = y_var)) + # extend the y axis so there's always room for the stats - ylim(min(lf_df$param_value), max(lf_df$param_value)+max(lf_df$param_value)/4) + + #ylim(min(lf_df$param_value), max(lf_df$param_value)+abs(max(lf_df$param_value))/4) + + ylim(min(lf_df$param_value), max(lf_df$param_value)+ymax_abs/4) + facet_wrap(fwv , nrow = n_facet_row