From c3853cc115d07d91d0711a0b4e01c8568f22f35d Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Sun, 30 Jun 2024 10:46:42 +0200 Subject: [PATCH] remaining --- vignettes/modelbased.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/modelbased.Rmd b/vignettes/modelbased.Rmd index 3b1170966..5184592ca 100644 --- a/vignettes/modelbased.Rmd +++ b/vignettes/modelbased.Rmd @@ -125,13 +125,13 @@ plot(result) ```{r slopes-poly, echo=TRUE, eval=FALSE} model <- lm(Petal.Length ~ Species * poly(Sepal.Width, 3), data = iris) -result <- estimate_slopes(model, at = c("Sepal.Width", "Species")) +result <- estimate_slopes(model, by = c("Sepal.Width", "Species")) plot(result) ``` ```{r slopes-poly2, eval=can_evaluate, echo=FALSE} model <- lm(Petal.Length ~ Species * poly(Sepal.Width, 3), data = iris) -result <- estimate_slopes(model, at = c("Sepal.Width", "Species")) +result <- estimate_slopes(model, by = c("Sepal.Width", "Species")) suppressWarnings(print(plot(result))) ```