From 035e4b22dd45fd2b8e7876025e114a40eb1fcec1 Mon Sep 17 00:00:00 2001 From: camille-s Date: Wed, 7 Feb 2024 11:35:18 -0500 Subject: [PATCH] Let add_logo example run on CI --- R/add_logo.R | 2 -- R/endpoint_lbls.R | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/R/add_logo.R b/R/add_logo.R index 061ef3f..99be7f4 100644 --- a/R/add_logo.R +++ b/R/add_logo.R @@ -27,7 +27,6 @@ #' a grob, or to `cowplot::draw_image` otherwise. #' @return A `ggplot` object. #' @examples -#' if(interactive()){ #' p <- ggplot2::ggplot(iris, ggplot2::aes(x = Sepal.Length)) + #' ggplot2::geom_density() + #' ggplot2::labs(title = "Test chart", caption = "Source: 2019 ACS 5-year estimates") @@ -48,7 +47,6 @@ #' ggplot2::theme_void() #' #' add_logo(p, gg_logo, width = 0.2, height = 0.1) -#' } #' @export #' @rdname add_logo #' @seealso [magick::image_read()], [cowplot::draw_image()] diff --git a/R/endpoint_lbls.R b/R/endpoint_lbls.R index 6c53913..2eeda05 100644 --- a/R/endpoint_lbls.R +++ b/R/endpoint_lbls.R @@ -36,7 +36,7 @@ #' geom_line() + #' geom_point(size = 3) + #' geom_text(aes(label = lbl, hjust = just, x = x)) + -#' scale_x_continuous(expand = expansion(add = 3), +#' scale_x_continuous(expand = expansion(add = 3.5), #' breaks = c(2015, 2021)) #' @export