Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: modelbased
Title: Estimation of Model-Based Predictions, Contrasts and Means
Version: 0.14.0.1
Version: 0.14.0.2
Authors@R:
c(person(given = "Dominique",
family = "Makowski",
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# modelbased (devel)

## Breaking Changes

* Argument `join_dots` in the `plot()` method, which is used to connect dots
with lines, now defaults to `FALSE`.

## Changes

* Support for models of class `nestedLogit`.
Expand Down
12 changes: 6 additions & 6 deletions R/visualisation_recipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
#' `collapse_group` argument to "collapse" data points by random effects
#' grouping factors. Argument `show_data` will be ignored for plotting objects
#' returned by `estimate_slopes()` or `estimate_grouplevel()`.
#' @param join_dots Logical, if `TRUE` (default) and for categorical focal terms
#' in `by`, dots (estimates) are connected by lines, i.e. plots will be a
#' combination of dots with error bars and connecting lines. If `FALSE`, only
#' dots and error bars are shown. It is possible to set a global default value
#' using `options()`, e.g. `options(modelbased_join_dots = FALSE)`.
#' @param join_dots Logical, if `TRUE` and for categorical focal terms in `by`,
#' dots (estimates) are connected by lines, i.e. plots will be a combination of
#' dots with error bars and connecting lines. If `FALSE` (default), only dots
#' and error bars are shown. It is possible to set a global default value using
#' `options()`, e.g. `options(modelbased_join_dots = TRUE)`.
#' @param numeric_as_discrete Maximum number of unique values in a numeric
#' predictor to treat that predictor as discrete. Defaults to `8`. Numeric
#' predictors are usually mapped to a continuous color scale, unless they have
Expand Down Expand Up @@ -203,7 +203,7 @@ visualisation_recipe.estimate_predicted <- function(

# set defaults
if (is.null(join_dots)) {
join_dots <- getOption("modelbased_join_dots", TRUE)
join_dots <- getOption("modelbased_join_dots", FALSE)
}
if (is.null(numeric_as_discrete)) {
numeric_as_discrete <- getOption("modelbased_numeric_as_discrete", 8)
Expand Down
2 changes: 1 addition & 1 deletion R/visualisation_recipe_internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
ribbon = NULL,
facet = NULL,
grid = NULL,
join_dots = TRUE,
join_dots = FALSE,
numeric_as_discrete = 8,
...
) {
Expand Down
10 changes: 5 additions & 5 deletions man/visualisation_recipe.estimate_predicted.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions tests/testthat/_snaps/plot-facet/plot-interaction-facets-cat-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading