diff --git a/NAMESPACE b/NAMESPACE index 5937475..13d3791 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -62,3 +62,4 @@ importFrom(lifecycle,deprecated) importFrom(scales,percent) importFrom(stats,weighted.mean) importFrom(stats,weights) +importFrom(utils,modifyList) diff --git a/R/hex_bw.R b/R/hex_bw.R index 76da317..eef6d78 100644 --- a/R/hex_bw.R +++ b/R/hex_bw.R @@ -7,7 +7,7 @@ #' @param hex_code Background color in hex-format. #' @return Either black or white, in hex-format #' @source Adapted from `saros` for `hex_code()` and from -#' [https://github.com/teunbrand/ggplot_tricks?tab=readme-ov-file#text-contrast] +#' #' for `auto_contrast`. #' @export #' @examples diff --git a/R/stat_prop.R b/R/stat_prop.R index ae02d1f..c9565d5 100644 --- a/R/stat_prop.R +++ b/R/stat_prop.R @@ -275,6 +275,7 @@ geom_prop_text <- function(mapping = ggplot2::aes(!!!auto_contrast), } # all defaults to after_stat(prop) +#' @importFrom utils modifyList StatPropProp <- ggplot2::ggproto( "StatPropProp", StatProp, diff --git a/man/hex_bw.Rd b/man/hex_bw.Rd index 26b1244..b8e0062 100644 --- a/man/hex_bw.Rd +++ b/man/hex_bw.Rd @@ -11,7 +11,7 @@ An object of class \code{uneval} of length 1. } \source{ Adapted from \code{saros} for \code{hex_code()} and from -\link{https://github.com/teunbrand/ggplot_tricks?tab=readme-ov-file#text-contrast} +\url{https://github.com/teunbrand/ggplot_tricks?tab=readme-ov-file#text-contrast} for \code{auto_contrast}. } \usage{