From e1ad91ca50912a2c1fc380d0fab009be36ccbb3a Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Fri, 29 Nov 2024 12:53:23 -0800 Subject: [PATCH] Update ggeffects vignette: add.data->show_data --- vignettes/articles/ggeffects.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/articles/ggeffects.Rmd b/vignettes/articles/ggeffects.Rmd index 72ee35eec..dc634117a 100644 --- a/vignettes/articles/ggeffects.Rmd +++ b/vignettes/articles/ggeffects.Rmd @@ -81,7 +81,7 @@ plot(g2) We can add in data points ```{r} -plot(g, add.data = TRUE) +plot(g, show_data = TRUE) ``` We can also use `ggeffect` to plot multiple variables by listing them in `terms = c()`, with the first term listed indicating the variable to be plotted on the x-axis, and the remaining listed terms (up to four total) indicating the groups. @@ -120,7 +120,7 @@ g2 <- ggeffect(fit2, "depth_scaled [-3:2.7 by=0.05]") plot(g2) # note the high density values dwarf the fitted curve here -plot(g2, add.dat = TRUE) +plot(g2, show_data = TRUE) ``` We can fit a model with an interaction of two continuous variables: