From c2e63ba46ee5180de474bffb0778d0aa61126516 Mon Sep 17 00:00:00 2001 From: Tenstu <54093040+Tenstu@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:14:16 +0800 Subject: [PATCH] Update themes.qmd The legend.position usage should be change for the update of ggplot3.5.0. From the ggplot2 3.5.0 https://ggplot2.tidyverse.org/news/index.html#ggplot2-350, Providing a numeric vector to theme(legend.position) has been deprecated. To set the default legend position inside the plot use theme(legend.position = "inside", legend.position.inside = c(...)) instead. --- themes.qmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes.qmd b/themes.qmd index a899a29d..2ba2b512 100644 --- a/themes.qmd +++ b/themes.qmd @@ -87,7 +87,8 @@ styled <- labelled + colour = "white" ), legend.justification = c(0, 1), - legend.position = c(0, 1), + legend.position = "inside", + legend.position.inside = c(0, 1), axis.ticks = element_line(colour = "grey70", linewidth = 0.2), panel.grid.major = element_line(colour = "grey70", linewidth = 0.2), panel.grid.minor = element_blank()