ggcoefstatscan support following new model objects:
outlier_dfto add a column specifying outlier status of any given data point is now exported.
subtitle_t_onesampleno longer has
dataas the optional argument. This was done to be consistent with other subtitle helper functions.
grouped_variant) introduced for making bar charts (thanks to #78).
ggcoefstatsalso displays a caption with model summary when meta-analysis is required.
grouped_variant has a new argument
normal.curveto superpose a normal distribution curve on top of the histogram (#138).
ggcoefstatscan support following new regression model objects:
effsizeto compute Cohen’s d and Hedge’s g,
ggstatsplotnow relies on a new (#159) internal function
effect_t_parametricto compute them. This removes
results.subtitlewhich can be set to
FALSEif statistical analysis is not required, in which case
subtitleargument can be used to provide alternative subtitle.
ggbetweenstatsnow defaults to using noncentral-t distribution for computing Cohen’s d and Hedge’s g. To get variants with central-t distribution, use
effsize.noncentral = FALSE.
grouped_functions had argument
title.prefixthat defaulted to
"Group". It now instead defaults to
NULL, in which case the prefix will variable name for
subtitle_templatefunction can now work with
parameter = NULL.
ggbetweenstats, details contained in the subtitle for non-parametric test are modified. It now uses Spearman’s rho-based effect size estimates. This removes
grouped_variant gain a new argument
axes.range.restrict(which defaults to
FALSE). This restricts
y-axes limits to minimum and maximum of
yvariable. This is what these functions were doing by default in the past versions, which created issues for additional ggplot components using the
ggcoefstatspasses dots (
bf_extractorno longer provides option to extract information about posterior distribution because these details were incorrect. The
posterior = TRUEdetails were not used anywhere in the package so nothing about the results changes.
ggcorrmatdidn’t output pair names when
output == "ci"was used. This is fixed.
meta.analytic.effectthat can be used to carry out meta-analysis on regression estimates. This especially useful when a dataframe with regression estimates and standard error is available from prior analyses. The
subtitleis prepared with the new function
subtitle_meta_ggcoefstatswhich is also exported.
grouped_variants) all gain a new
ggplot.componentargument. This argument will primarily be helpful to change the individual plots in a
ggcoefstatscan support following new regression model objects:
ggcoefstatsdidn’t work when
statisticargument was set to
NULL. This was not expected behavior. This has been fixed. Now, if
statisticis not specified, only the dot-and-whiskers will be shown without any labels.
subtitle_t_parametricwas producing incorrect sample size information when
paired = TRUEand the data contained
NAs. This has been fixed.
grouped_variant accept both character and bare exressions as input to arguments
ggscatterstats, by default, showed jittered data points (because it relied on
position_jitterdefaults). This could be visually inaccurate and, therefore,
ggscatterstatsnow displays points without any jitter. The user can introduce jitter if they wish to using
point.height.jitterarguments. For similar reasons, for
point.jitter.heightdefault has been changed from
0(no vertical jitter, i.e.).
stats::kruskal.test. As a result,
PMCMRplusremoved from dependencies.
caption.summaryis set to
TRUE, the specified caption will be added on top of the
ggcoefstatswas showing wrong confidence intervals for
merModclass objects due to a bug in the
broom.mixedpackage (https://github.com/bbolker/broom.mixed/issues/30#issuecomment-428385005). This was fixed in
ggcoefstatsshould no longer have any issues.
specify_decimal_phas been modified because it produced incorrect results when
k < 3and
p.value = TRUE(e.g.,
0.002was printed as
ggpiestatsproduced incorrect results if some levels of the factor had been filtered out prior to using this function. It now drops unused levels and produces correct results.
gghistostatswasn’t filtering out
NAs properly. This has been fixed.
ggdotplotstatsfor creating a dot plot/chart for labelled numeric data.
conf.levelargument to control confidence level for effect size measures.
kargument for all functions has been changed from
ggbetweenstatssubtitles have been renamed to remove
_ggbetween_from their names as this was becoming confusing for the user. Some of these functions work both with the between- and within-subjects designs, so having
_ggbetween_in their names made users suspect if they could use these functions for within-subjects designs.
ggstatsplotnow depends on
R 3.5.0. This is because some of its dependencies require 3.5.0 to work (e.g.,
theme_functions are now exported (
ggbetweenstatsnow supports multiple pairwise comparison tests (parametric, nonparametric, and robust variants). It gains a new dependency
ggbetweenstatsnow supports eta-squared and omega-squared effect sizes for anova models. This function gains a new argument
groupedstatspackage to avoid repeating the same code in two packages:
groupedstatsis now added as a dependency.
gghistostatscan now show both counts and proportions information on the same plot when
bar.measureargument is set to
ggcoefstatsworks with tidy dataframes.
untablehas been deprecated in light of
tidyr::uncount, which does exactly what
untablewas doing. The author wasn’t aware of this function when
CRANto reduce the size of the package. They are now available on the package website: https://indrajeetpatil.github.io/ggstatsplot/articles/.
subtitle_t_robustfunction can now handle dependent samples and gains
ggpiestats, and their
grouped_variant support bayes factor tests and gain new arguments relevant to this test.
ggbetweenstatssupports bayes factor tests for anova designs.
slice.labelargument that decides what information needs to be displayed as a label on the slices of the pie chart:
"percentage"(which has been the default thus far),
ggcorrmatcan work with
cor.vars = NULL. In such case, all numeric variables from the provided dataframe will be used for computing the correlation matrix.
gghistostatswith the argument
ggbetweenstatsalso gains two new arguments to do this:
subtitle, the current default for
p.adjust.methodargument which allows p-values for correlations to be corrected for multiple comparisons.
label.expressionarguments to attach labels to points.
gghistostatsnow defaults to not showing (redundant) color gradient (
fill.gradient = FALSE) and shows both
"proportion"data. It also gains a new argument
bar.fillthat can be used to fill bars with a uniform color.
ggpiestatsnow support all palettes contained in the
paletteerpackage. This helps avoid situations where people had large number of groups (> 12) and there were not enough colors in any of the
bf.messageargument to display bayes factors in favor of the null (currently works only for parametric t-test).
gghistostatsfunction no longer has
line.labeller.yargument; this position is automatically determined now.
legend.title.marginfunction has been deprecated since
ggplot2 3.0.0has improved on the margin issues from previous versions. All functions that wrapped around this function now lose the relevant arguments (
ggstatsplot.themehas been changed to
ggcorrmatfunction to be consistent across functions.
ggbetweenstatshave been deprecated. No other function in the package allowed changing confidence interval or their type for effect size estimation. These arguments were relevant only for
typehas been changed to
matrix.typebecause for all other functions
typeargument specifies the type of the test, while for this function it specified the display of the visualization matrix. This will make the syntax more consistent across functions.
ggscatterstatsgains new arguments to specify aesthetics for geom point (
point.alpha). To be consistent with this naming schema, the
height.jitterarguments have been renamed to
gghistostats: To be compatible with
JASP, natural logarithm of Bayes Factors is displayed, and not base 10 logarithm.
formulaarguments to modify smoothing functions.
ggcorrmatcan now show
robustcorrelation coefficients in the matrix plot.
binwidthvalue, if not specified, is computed with
(max-min)/sqrt(n). This is basically to get rid of the warnings ggplot2 produces. Thanks to Chuck Powell’s PR (#43).
ggcoefstatsgains a new argument
partialand can display eta-squared and omega-squared effect sizes for anovas, in addition to the prior partial variants of these effect sizes.
perc.kargument to show desired number of decimal places in percentage labels.
grouped_ggpiestatswasn’t working when only
mainvariable was provided with
countsdata. Fixed that.
theme_mprlis now called
theme_mprlfunction will still be around and will not be deprecated, so feel free to use either or both of them since they are identical.
ggcoefstatsno longer has arguments
ran_paramsbecause only fixed effects are shown for mixed-effects models.
ggpiestatscan now handle within-subjects designs (McNemar test results will be displayed).
ggbetweenstatswas producing wrong axes labels when
sample.size.labelwas set to
TRUEand user had reordered factor levels before using this function. The new version fixes this.
ggcoefstatswasn’t producing partial omega-squared for
aovlistobjects. Fixed that with new version of
gghistostatshas a new argument to remove color fill gradient.
ggbetweenstatstakes new argument
mean.cito show confidence intervals for the mean values.
lmermodels, p-values are now computed using
sjstats::p_value. This removes
lmerTestpackage from dependencies.
sjstatsno longer suggests
apaTablespackage to compute confidence intervals for partial eta- and omega-squared. Therefore,
MBESSare removed from dependencies.
densigramwith the development version of
ggExtra. It additionally gains few extra arguments to change aesthetics of marginals (alpha, size, etc.).
ggcoefstatsfor displaying model coefficients.
ggthemeargument that can be used to change the default theme, which has now been changed from
MASS::rlm, but percentage bend correlation, as implemented in
WRS2::pbcor. This was done to be consistent across different functions.
ggcorrmatalso uses percentage bend correlation as the robust correlation measure. This also means that
ggstatsplotno longer imports
dataargument is no longer
NULLfor all functions, except
gghistostats. In other words, the user must provide a dataframe from which variables or formulas should be selected.
ggpiestatscan now handle dataframes with
ggpiestatsnow display sample sizes for each level of the groping factor by default. This behavior can be turned off by setting
boot::boot. Therefore, the package no longer imports
ggcorrmatnow default to
ggplot2 3.0.0has better legend title margins.
ggpiestatsnow sorts the summary dataframes not by percentages but by the levels of
mainvariable. This was done to have the same legends across different levels of a grouping variable in
ggpiestatsno longer shows titles for the tests run (these were “Proportion test” and “Chi-Square test”). From the pie charts, it should be obvious to the user or reader what test was run.
gghistostatsalso allows running robust version of one-sample test now (One-sample percentile bootstrap).
ggbetweenstatsfunction can now show notched box plots. Two new arguments
notchwidthcontrol its behavior. The defaults are still standard box plots.
outlier.labelargument was of
densityas a value measure for bar heights to show proportions and density. New argument
bar.measurecontrols this behavior.
grouped_variants of functions
ggpiestatsintroduced to create multiple plots for different levels of a grouping variable.
ggstatsplotuse the spelling
color, rather than
colourin some functions, while
gghistostatsfunction. This argument was relevant for the first avatar of this function, but is no longer playing any role.
ggcorrmathave been changed to
ggstatsplot.themefunction to control if
ggstatsplot::theme_mprlis to be overlaid on top of the selected ggtheme (ggplot2 theme, i.e.).
gghistostatsto allow user to change colorbar gradient. Defaults are colorblind friendly.
ggcorrmathave a new argument
legend.title.marginto control margin adjustment between the title and the colorbar.
ggscatterstatswas not working properly. Choosing
"median"didn’t show median, but the mean. This is fixed now.
gghistostatsand two new arguments to also display a vertical line for
grouped_gghistostatsto facilitate applying
gghistostatsfor multiple levels of a grouping factor.
ggbetweenstatshas a new argument
outlier.coefto adjust threshold used to detect outliers. Removed bug from the same function when
outlier.labelargument is of factor/character type.
grouped_proptestare now deprecated. They were exported in the first release by mistake.
gghistostatsno longer displays both density and count since the density information was redundant. The
density.plotargument has also been deprecated.
intercepthas now been changed to
centrality.para. This was due to possible confusion about interpretation of these lines; they show central tendency measures and not intercept for the linear model. Thus the change.
effsize.type = "biased"effect size for
ggbetweenstatsin case of ANOVA is partial omega-squared, and not omega-squared. Additionally, both partial eta- and omega-squared are not computed using bootstrapping with (default) 100 bootstrap samples.
RVAideMemoirepackage is thus removed from dependencies.
ggbetweenstatsfunction are now computed using
sjstatspackage, which allows bootstrapping.
userfriendlysciencepackages are thus removed from dependencies.