Skip to content

Commit

Permalink
Merge pull request #948 from strengejacke/strengejacke/issue947
Browse files Browse the repository at this point in the history
plot_model not changing confidence intervals with ci.lvl function
  • Loading branch information
strengejacke authored Aug 28, 2024
2 parents 5227a3e + 1ae43ad commit 19d846b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ Package: sjPlot
Type: Package
Encoding: UTF-8
Title: Data Visualization for Statistics in Social Science
Version: 2.8.16
Version: 2.8.16.1
Authors@R: c(
person("Daniel", "Lüdecke", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-8895-3206")),
person("Alexander", "Bartel", role = "ctb", comment = c(ORCID = "0000-0002-1280-6138")),
person("Carsten", "Schwemmer", email = "[email protected]", role = "ctb"),
person(given = "Chuck", family = "Powell", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0002-3606-2188")),
person(given = "Chuck", family = "Powell", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0002-3606-2188")),
person(given = "Amir", family = "Djalovski", role = "ctb", email = "[email protected]"),
person(given = "Johannes", family = "Titz", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0002-1102-5719")))
Maintainer: Daniel Lüdecke <[email protected]>
Description: Collection of plotting and table output functions for data
visualization. Results of various statistical analyses (that are commonly used
in social sciences) can be visualized using this package, including simple and
cross tabulated frequencies, histograms, box plots, (generalized) linear models,
mixed effects models, principal component analysis and correlation matrices,
cluster analyses, scatter plots, stacked scales, effects plots of regression
mixed effects models, principal component analysis and correlation matrices,
cluster analyses, scatter plots, stacked scales, effects plots of regression
models (including interaction terms) and much more. This package supports
labelled data.
License: GPL-3
Expand Down
20 changes: 13 additions & 7 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# sjPlot 2.8.17

## Bug fixes

* Fixed issues with renamed arguments in upstream package *ggeffects*.

# sjPlot 2.8.15

* Minor fix in vignettes.
Expand All @@ -23,21 +29,21 @@

## General

* Minor changes to work properly with updates of upstream packages and
* Minor changes to work properly with updates of upstream packages and
various smaller bug fixes and improvements.

# sjPlot 2.8.11

## General

* Minor changes to work properly with updates of upstream packages and
* Minor changes to work properly with updates of upstream packages and
various smaller bug fixes and improvements.

# sjPlot 2.8.10

## General

* Minor changes to work properly with updates of downstream packages and
* Minor changes to work properly with updates of downstream packages and
various smaller bug fixes and improvements.

# sjPlot 2.8.9
Expand Down Expand Up @@ -206,7 +212,7 @@
## Bug fixes

* Fixed bug in `plot_stackfrq()` for data frames with many missing values.
* Fixed bug with sorting frequencies in `plot_frq()` when vector had more labels than values.
* Fixed bug with sorting frequencies in `plot_frq()` when vector had more labels than values.
* Fixed bug in `tab_model()` where `show.reflvl = TRUE` did not insert the reference category in first place, but in alphabetical order.

# sjPlot 2.7.1
Expand Down Expand Up @@ -270,7 +276,7 @@
* Argument `string.est` in `tab_model()` did not overwrite the default label for the estimate-column-header.
* Minor fix in `tab_model()` for mixed models that can't compute R2.
* Fix issue in `tab_model()` when printing robust standard errors and CI (i.e. when using arguments `vcov*`).
* The `plot_likert()` option `reverse.scale = TRUE` resulted in `values = "sum.inside"` being outside and the other way around. This is fixed now.
* The `plot_likert()` option `reverse.scale = TRUE` resulted in `values = "sum.inside"` being outside and the other way around. This is fixed now.
* `view_df()` mixed up labels and frequency values when value labels were present, but no such values were in the data.
* Argument `wrap.labels` in `plot_frq()` did not properly work for factor levels.
* Fix issue in `plot_models()` that stopped for some models.
Expand Down Expand Up @@ -339,7 +345,7 @@ Following functions are now defunct:
## Bug fixes

* `plot_model()` no longer automatically changes the plot-type to `"slope"` for models with only one predictor that is categorical and has more than two levels.
* `type = "eff"` and `type = "pred"` in `plot_model()` did not work when `terms` was not specified.
* `type = "eff"` and `type = "pred"` in `plot_model()` did not work when `terms` was not specified.
* If robust standard errors are requested in `tab_model()`, the confidence intervals and p-values are now re-calculated and adjusted based on the robust standard errors.
* `colors = "bw"` was not recognized correctly for `plot_model(..., type = "int")`.
* Fix issue in `sjp.frq()` with correct axis labels for non-labelled character vectors.
Expand Down
6 changes: 3 additions & 3 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_level = ci.lvl,
type = pred.type,
...
)
} else if (type == "emm") {
dat <- ggeffects::ggemmeans(
model = model,
terms = terms,
ci_lvl = ci.lvl,
ci_level = ci.lvl,
type = pred.type,
...
)
} else {
dat <- ggeffects::ggeffect(
model = model,
terms = terms,
ci_lvl = ci.lvl,
ci_level = ci.lvl,
...
)
}
Expand Down
2 changes: 1 addition & 1 deletion 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_level = ci.lvl,
type = pred.type,
full.data = FALSE,
...
Expand Down

0 comments on commit 19d846b

Please sign in to comment.