diff --git a/DESCRIPTION b/DESCRIPTION index 5800bd8..5e0a9aa 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: futebolplotR Title: Brazilian Soccer Badges Plots in 'ggplot2' -Version: 0.0.1 +Version: 0.0.2 Authors@R: c( person("Bruno", "Mioto", , "brunomioto97@gmail.com", role = c("cre", "aut")), person("Gabriela", "Junqueira", , "mg.junqueira@hotmail.com", role = "aut") @@ -16,8 +16,8 @@ Depends: Imports: brasileirao, cli (>= 3.0.0), - ggpath (>= 1.0.0), - ggplot2 (>= 3.3.0), + ggpath (>= 1.0.1), + ggplot2 (>= 4.0.0), glue, grid, lifecycle, diff --git a/R/theme-elements.R b/R/theme-elements.R index 1c385fd..a09f7a4 100644 --- a/R/theme-elements.R +++ b/R/theme-elements.R @@ -69,7 +69,7 @@ element_futebol_badge <- function(alpha = NULL, colour = NA, hjust = NULL, vjust element_grob.element_futebol_badge <- function(element, label = "", x = NULL, y = NULL, alpha = NULL, colour = NULL, hjust = 0.5, vjust = 0.5, - size = NULL, ...) { + size = NULL, theme = NULL, ...) { if (is.null(label)) return(ggplot2::zeroGrob()) @@ -91,6 +91,7 @@ element_grob.element_futebol_badge <- function(element, label = "", x = NULL, y hjust = hjust, vjust = vjust, size = size, + theme = theme, ... ) }