Closed anhsmith closed 1 year ago
These arguments are available in the current development version, for the current CRAN version, the old argument names still apply (i.e. ci
instead of show_ci
and rawdata
resp. add.data
for show_data
). Either use the "old" argument names, or update to the latest development version using ggeffects::install_latest()
:
library(ggeffects)
data(iris)
m1 <- lm(Sepal.Length ~ Species, data = iris)
m1_ggp <- ggpredict(m1, terms = "Species")
plot(m1_ggp, show_ci = FALSE)
plot(m1_ggp, show_data = TRUE)
#> Data points may overlap. Use the `jitter` argument to add some amount of
#> random variation to the location of data points and avoid overplotting.
Created on 2023-10-05 with reprex v2.0.2
When I try to use the arguments
show_ci
andshow_data
, when applying theplot()
function to aggeffects
object, I get an error.The last two commands give the following error:
Likewise for an ANCOVA model:
And an example from a
ggeffects
vignette gave the same error:I'm aware that I can use
ggplot()
and create a customised plot.