From e73faf3fc81021ca258993248bb9b325eb4a6e5f Mon Sep 17 00:00:00 2001 From: sean-connelly-cmap <156253293+sean-connelly-cmap@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:07:26 -0500 Subject: [PATCH] add new geom to default aes --- R/cmapplot_globals.R | 1 + R/default_aes.R | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/R/cmapplot_globals.R b/R/cmapplot_globals.R index e9318904..50ce171d 100644 --- a/R/cmapplot_globals.R +++ b/R/cmapplot_globals.R @@ -114,6 +114,7 @@ cmapplot_globals$geoms_that_change <- c( "Line", "Text", "TextLast", + "TextLastNew", "PointLast", "RecessionsText" ) diff --git a/R/default_aes.R b/R/default_aes.R index 7cdc7a26..c7c4da5f 100644 --- a/R/default_aes.R +++ b/R/default_aes.R @@ -29,6 +29,12 @@ init_cmap_default_aes <- function () { size = cmapplot_globals$fsize$M/ggplot2::.pt, # pt-to-mm conversion colour = cmapplot_globals$colors$blackish ), + TextLastNew = list( + family = cmapplot_globals$font$strong$family, + fontface = ifelse(cmapplot_globals$font$strong$face == "bold", 2, 1), + size = cmapplot_globals$fsize$M/ggplot2::.pt, # pt-to-mm conversion + colour = cmapplot_globals$colors$blackish + ), PointLast = list( size = 2 * gg_lwd_convert(cmapplot_globals$consts$lwd_plotline) ),