Skip to content

Commit

Permalink
Error ci_style with typre="pred" for ggeffects version 1.3.2
Browse files Browse the repository at this point in the history
Fixes #921
  • Loading branch information
strengejacke committed Nov 23, 2023
1 parent 6d96fde commit c5abb86
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
22 changes: 11 additions & 11 deletions R/plot_type_eff.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ plot_type_eff <- function(type,
dat <- ggeffects::ggpredict(
model = model,
terms = terms,
ci.lvl = ci.lvl,
ci_lvl = ci.lvl,
type = pred.type,
...
)
} else if (type == "emm") {
dat <- ggeffects::ggemmeans(
model = model,
terms = terms,
ci.lvl = ci.lvl,
ci_lvl = ci.lvl,
type = pred.type,
...
)
} else {
dat <- ggeffects::ggeffect(
model = model,
terms = terms,
ci.lvl = ci.lvl,
ci_lvl = ci.lvl,
...
)
}
Expand Down Expand Up @@ -82,20 +82,20 @@ plot_type_eff <- function(type,

p <- graphics::plot(
dat,
ci = !is.na(ci.lvl),
show_ci = !is.na(ci.lvl),
facets = facets,
rawdata = show.data,
show_data = show.data,
colors = geom.colors,
use.theme = FALSE,
use_theme = FALSE,
jitter = jitter,
case = case,
show.legend = show.legend,
dot.alpha = dot.alpha,
show_legend = show.legend,
dot_alpha = dot.alpha,
alpha = alpha,
dodge = dodge,
log.y = log.y,
dot.size = dot.size,
line.size = line.size
log_y = log.y,
dot_size = dot.size,
line_size = line.size
)


Expand Down
18 changes: 9 additions & 9 deletions R/plot_type_int.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ plot_type_int <- function(model,
dat <- ggeffects::ggpredict(
model = model,
terms = ia,
ci.lvl = ci.lvl,
ci_lvl = ci.lvl,
type = pred.type,
full.data = FALSE,
...
Expand Down Expand Up @@ -132,20 +132,20 @@ plot_type_int <- function(model,

p <- graphics::plot(
dat,
ci = !is.na(ci.lvl),
show_ci = !is.na(ci.lvl),
facets = facets,
rawdata = show.data,
show_data = show.data,
colors = geom.colors,
jitter = jitter,
use.theme = FALSE,
use_theme = FALSE,
case = case,
show.legend = show.legend,
dot.alpha = dot.alpha,
show_legend = show.legend,
dot_alpha = dot.alpha,
alpha = alpha,
dodge = dodge,
log.y = log.y,
dot.size = dot.size,
line.size = line.size
log_y = log.y,
dot_size = dot.size,
line_size = line.size
)

# set axis and plot titles
Expand Down

0 comments on commit c5abb86

Please sign in to comment.