Skip to content

Releases: fsolt/dotwhisker

Minimizing the need for tabulation

02 Feb 08:13
Compare
Choose a tag to compare

New features

  1. Adding the argument show_stats to dwplot and small_multiple to show model fits beneath the plot
  2. Adding a hidden function dw_stats to extract model fits from the model outputs.

Bug fixed

  1. Removed the reference to broomExtra per CRAN's requirement (email on 2024-01-23)

Model Order Customization

18 Jul 02:26
Compare
Choose a tag to compare

Version 0.7.0

New features

  1. Adding argument model_order in dwplot to allow customizing the order of models to present.
  2. Adding argument fontSize in add_brackets to allow customizing the font size of bracket labels, and opening possibility for users to further customize bracket labels.
  3. Using the parameters instead of broomExtra as the plotting data frame creator. Thanks for the suggestion from @IndrajeetPatil.

Bug fixed

  1. Models and margins present in the correct order.

Better `dw_tidy`

18 Feb 12:34
Compare
Choose a tag to compare

New features

  1. Adding changing the dw_tidy engine to broomExtra::tidy_parapmeter. Thanks for Indrajeet Patil's amazing package.
  2. Adding the function to plot AME based on margins::margins.

Bug fixed

  1. Allowing the data.frame output varying based on confidence intervals.
  2. Setting the default value of by_2sd to FALSE.

v0.5.0

27 Jun 18:21
Compare
Choose a tag to compare
update

CRAN Version 0.4.0

15 Apr 14:01
Compare
Choose a tag to compare

New features

  1. A new plot style! Specifying style = "distribution" in the arguments to dwplot() presents regression coefficients as normal distributions, underscored with a line representing the desired confidence interval.
  2. relabel_predictors() now conveniently reorders the predictors as well.
  3. add_brackets() can now be added directly to the end of a chain of commands that generate a dotwhisker plot; the intermediate object necessary in past versions is no longer needed. Just wrap the plotting commands in braces ({ and }) before piping them to add_brackets()!

Syntax changes

  1. The alpha argument to dwplot() should no longer be used to change the width of confidence intervals; use conf.int (to be passed to broom::tidy via ...) instead.
  2. When dwplot() is passed model objects rather than a tidy data frame, the regression coefficients are now rescaled by two standard deviations of their respective variables in the analysed data (per by_2sd()) by default. This may be changed by setting by_2sd = FALSE.

Bug fixes

  1. Fixed a bug in add_brackets() that de-centered the brackets
  2. Fixed a bug that caused dot_args to be ignored after plots were passed to relabel_predictors()
  3. Fixed a bug that prevented small_multiple() from directly reading confidence intervals from a model.
  4. Fixed a bug in by_2sd() now adjusts, if present, any confidence intervals in tidy data frames passed to the function.

Thanks to Steven V. Miller and Ryan Burge for bug reports, and to Ben Edwards and Jay Jacobs for inspiring style = "distribution"!

Function update

28 Jun 03:37
Compare
Choose a tag to compare
  1. More flexible and efficient plotting with ggstance functions.
  2. Plotting whiskers with the CI estimations from the model.
  3. Minor bug fixes.

Bug fixed

20 Apr 11:52
Compare
Choose a tag to compare

Fix the bug in relabel_predictors.

Function Expanding

06 Apr 02:01
Compare
Choose a tag to compare
  1. Expanded capabilities of relabel_predictors. relabel_predictors now accepts plots as well as tidy dataframes as input; that is, it may now be used both before and after calls to dwplot.
  2. Deprecated relabel_y_axis. It is easy to mistakenly mislabel variables with relabel_y_axis, and it has a conflict with add_brackets in single-model plots.
  3. Provided example of using multiple shapes for multiple models in vignette.
  4. dwplot works for polr projects.

Function improvement

06 Apr 02:00
Compare
Choose a tag to compare

Improved the presentation of small_multiple.

Bug fixed

13 Nov 18:19
Compare
Choose a tag to compare

Fixed the error of variable ordering with a single model.