From f9d146f4989ec0c372d14cb2549a3474b62d015a Mon Sep 17 00:00:00 2001 From: jgabry Date: Thu, 10 Sep 2020 11:07:06 -0600 Subject: [PATCH 1/2] mcmc-parcoord: expand x-axis to avoid cutting off label --- R/mcmc-parcoord.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/mcmc-parcoord.R b/R/mcmc-parcoord.R index 777c109e..04a0eceb 100644 --- a/R/mcmc-parcoord.R +++ b/R/mcmc-parcoord.R @@ -154,6 +154,7 @@ mcmc_parcoord <- graph + scale_x_discrete(expand = c(0,0), labels = levels(draws$Parameter)) + + expand_limits(x = nlevels(draws$Parameter) + 0.5) + labs(x = NULL, y = NULL) } From 437d1e95383b171d3687328ffa3423cf82321668 Mon Sep 17 00:00:00 2001 From: jgabry Date: Thu, 10 Sep 2020 11:13:40 -0600 Subject: [PATCH 2/2] use 0.25 instead of 0.5 --- R/mcmc-parcoord.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/mcmc-parcoord.R b/R/mcmc-parcoord.R index 04a0eceb..cd15b33e 100644 --- a/R/mcmc-parcoord.R +++ b/R/mcmc-parcoord.R @@ -154,7 +154,7 @@ mcmc_parcoord <- graph + scale_x_discrete(expand = c(0,0), labels = levels(draws$Parameter)) + - expand_limits(x = nlevels(draws$Parameter) + 0.5) + + expand_limits(x = nlevels(draws$Parameter) + 0.25) + labs(x = NULL, y = NULL) }