Skip to content

Commit

Permalink
add new geom to default aes
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-connelly-cmap committed Aug 12, 2024
1 parent 6ec7488 commit e73faf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/cmapplot_globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ cmapplot_globals$geoms_that_change <- c(
"Line",
"Text",
"TextLast",
"TextLastNew",
"PointLast",
"RecessionsText"
)
Expand Down
6 changes: 6 additions & 0 deletions R/default_aes.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
),
Expand Down

0 comments on commit e73faf3

Please sign in to comment.