lf_bp2: extend y axis

This commit is contained in:
Tanushree Tunstall 2022-10-11 11:51:20 +01:00
parent 25cfe39c71
commit 37e970dea3

View file

@ -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 = ""