Releases: fsolt/dotwhisker
Releases · fsolt/dotwhisker
Minimizing the need for tabulation
New features
- Adding the argument
show_stats
todwplot
andsmall_multiple
to show model fits beneath the plot - Adding a hidden function
dw_stats
to extract model fits from the model outputs.
Bug fixed
- Removed the reference to
broomExtra
per CRAN's requirement (email on 2024-01-23)
Model Order Customization
Version 0.7.0
New features
- Adding argument
model_order
indwplot
to allow customizing the order of models to present. - Adding argument
fontSize
inadd_brackets
to allow customizing the font size of bracket labels, and opening possibility for users to further customize bracket labels. - Using the
parameters
instead ofbroomExtra
as the plotting data frame creator. Thanks for the suggestion from @IndrajeetPatil.
Bug fixed
- Models and margins present in the correct order.
Better `dw_tidy`
New features
- Adding changing the
dw_tidy
engine tobroomExtra::tidy_parapmeter
. Thanks for Indrajeet Patil's amazing package. - Adding the function to plot AME based on
margins::margins
.
Bug fixed
- Allowing the data.frame output varying based on confidence intervals.
- Setting the default value of
by_2sd
to FALSE.
v0.5.0
CRAN Version 0.4.0
New features
- A new plot style! Specifying
style = "distribution"
in the arguments todwplot()
presents regression coefficients as normal distributions, underscored with a line representing the desired confidence interval. relabel_predictors()
now conveniently reorders the predictors as well.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 toadd_brackets()
!
Syntax changes
- The
alpha
argument todwplot()
should no longer be used to change the width of confidence intervals; useconf.int
(to be passed tobroom::tidy
via...
) instead. - 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 (perby_2sd()
) by default. This may be changed by settingby_2sd = FALSE
.
Bug fixes
- Fixed a bug in
add_brackets()
that de-centered the brackets - Fixed a bug that caused
dot_args
to be ignored after plots were passed torelabel_predictors()
- Fixed a bug that prevented
small_multiple()
from directly reading confidence intervals from a model. - 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
- More flexible and efficient plotting with
ggstance
functions. - Plotting whiskers with the CI estimations from the model.
- Minor bug fixes.
Bug fixed
Function Expanding
- 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 todwplot
. - Deprecated
relabel_y_axis
. It is easy to mistakenly mislabel variables withrelabel_y_axis
, and it has a conflict withadd_brackets
in single-model plots. - Provided example of using multiple shapes for multiple models in vignette.
dwplot
works forpolr
projects.
Function improvement
Improved the presentation of small_multiple
.