From 37e970dea3040ad05367eea20fd3c327541f6b30 Mon Sep 17 00:00:00 2001 From: Tanushree Tunstall Date: Tue, 11 Oct 2022 11:51:20 +0100 Subject: [PATCH] lf_bp2: extend y axis --- scripts/functions/lf_bp2.R | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/functions/lf_bp2.R b/scripts/functions/lf_bp2.R index b768b21..cef2a3e 100644 --- a/scripts/functions/lf_bp2.R +++ b/scripts/functions/lf_bp2.R @@ -75,6 +75,8 @@ lf_bp2 <- function(lf_df #lf_duet , colour = "black" #, position = position_dodge(width = 0.9) , draw_quantiles = violin_quantiles) + + # extend the y axis so there's always room for the stats + ylim(min(lf_df$param_value), max(lf_df$param_value)+0.25) + # Add formatting to graph theme(axis.text.x = element_text(size = my_ats) @@ -94,7 +96,9 @@ lf_bp2 <- function(lf_df #lf_duet , legend.title = element_text(color = "black" , size = my_als) , legend.text = element_text(size = my_ats) - , legend.direction = "vertical") + + , legend.direction = "vertical" + #, plot.margin = margin(10,10,10,10,'pt') + ) + labs(title = p_title , x = ""