From 77ef62c54b6f5d2b0cdf59a624238ba0eb937c06 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Tue, 27 Aug 2024 13:50:21 +0200 Subject: [PATCH] Fix example --- R/theme-elements.R | 2 +- man/element.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/theme-elements.R b/R/theme-elements.R index d1f165e27b..721473e19f 100644 --- a/R/theme-elements.R +++ b/R/theme-elements.R @@ -55,7 +55,7 @@ #' geom_smooth(formula = y ~ x, method = "lm") + #' theme(geom = element_geom( #' ink = "red", accent = "black", -#' pointsize = 1, thick = 2 +#' pointsize = 1, linewidth = 2 #' )) #' @name element #' @aliases NULL diff --git a/man/element.Rd b/man/element.Rd index c1ee0ce2cd..c671fa6a44 100644 --- a/man/element.Rd +++ b/man/element.Rd @@ -187,6 +187,6 @@ ggplot(mpg, aes(displ, hwy)) + geom_smooth(formula = y ~ x, method = "lm") + theme(geom = element_geom( ink = "red", accent = "black", - pointsize = 1, thick = 2 + pointsize = 1, linewidth = 2 )) }