Skip to content

Commit

Permalink
prepare for CRAN (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil authored Jun 5, 2023
1 parent daa1a37 commit b6d0b83
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 51 deletions.
20 changes: 9 additions & 11 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: see
Title: Model Visualisation Toolbox for 'easystats' and 'ggplot2'
Version: 0.7.5.10
Version: 0.8.0
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down Expand Up @@ -63,17 +63,15 @@ Depends:
R (>= 3.6),
stats
Imports:
bayestestR (>= 0.13.0),
correlation (>= 0.8.3),
datawizard (>= 0.7.0),
bayestestR (>= 0.13.1),
correlation (>= 0.8.4),
datawizard (>= 0.7.1),
effectsize (>= 0.8.3),
ggplot2 (>= 3.4.1),
insight (>= 0.19.1),
modelbased (>= 0.8.5),
parameters (>= 0.20.2),
performance (>= 0.10.1)
Remotes:
easystats/performance, easystats/bayestestR
ggplot2 (>= 3.4.2),
insight (>= 0.19.2),
modelbased (>= 0.8.6),
parameters (>= 0.21.1),
performance (>= 0.10.4)
Suggests:
brms,
curl,
Expand Down
38 changes: 20 additions & 18 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# see (development version)
# see 0.8.0

* `plot()` for `performance::check_model()` no longer produces a normal QQ plot
for GLMs. Instead, it now shows a half-normal QQ plot of the absolute value
of the standardized deviance residuals.
for GLMs. Instead, it now shows a half-normal QQ plot of the absolute value of
the standardized deviance residuals.

* `plot()` for `performance::check_model()` and `performance::check_predictions()`
gains a `type` argument, to either create density plots, or discrete dots resp.
interval plots for posterior predictive checks.
* `plot()` for `performance::check_model()` and
`performance::check_predictions()` gains a `type` argument, to either create
density plots, or discrete dots resp. interval plots for posterior predictive
checks.

* `plot()` for `performance::check_model()` gains an `n_column` argument, to
define the number of columns for the diagnostic plots (by default, two columns).
define the number of columns for the diagnostic plots (by default, two
columns).

* `plot()` for `performance::check_model()` sometimes failed to create the plot
under certain conditions, e.g. when the screen or app windows was zoomed-in.
If an error occurs, a much more informative error message is shown, providing
several possible solutions to resolve this poblem.
several possible solutions to resolve this problem.

* `plot()` for `parameters::equivalence_test()` now aligns the labelling with
the `print()` method. Hence, the legend title is no longer labelled
`"Decision on H0"`, but rather `"Equivalence"`, to emphasize that we can
assume practical equivalence for effects, but that we cannot accept the H0
(in a frequentist framework).
the `print()` method. Hence, the legend title is no longer labelled `"Decision
on H0"`, but rather `"Equivalence"`, to emphasize that we can assume practical
equivalence for effects, but that we cannot accept the H0 (in a frequentist
framework).

* Added some examples and cross references between docs. Furthermore, a vignette
about plotting functions for the *datawizard* package was added.
Expand All @@ -32,18 +34,18 @@

* Fixes issue in `plot.binned_residuals()` for models whose residuals were
completely inside error bounds.
* `plot()` now works when using it on the output of `describe_distribution()` with
a `select` argument of length 1.

* `plot()` now works when using it on the output of `describe_distribution()`
with a `select` argument of length 1.

# see 0.7.5

## Changes

* Changed the default "yellow" color in `palette_okabeito()` to `"#F5C710"`
instead of `"#F0E442"` to increase visibility against a white background.
For the original Okabe-Ito palette, set `palette = "full_original"` or
`palette = "black_first_original"`.
instead of `"#F0E442"` to increase visibility against a white background. For
the original Okabe-Ito palette, set `palette = "full_original"` or `palette =
"black_first_original"`.

* Deals with deprecated arguments and functions in recent `{ggplot2}` updates.

Expand Down
31 changes: 16 additions & 15 deletions R/plot.check_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -271,21 +271,22 @@ plot.see_performance_pp_check <- function(x,
x_tmp$grp <- NULL

x_errorbars <- rbind(x_errorbars, x_tmp)
p1 <- ggplot2::ggplot() + ggplot2::geom_pointrange(
data = x_errorbars[x_errorbars$key == "Model-predicted data", ],
mapping = ggplot2::aes(
x = .data$x,
y = .data$count,
ymin = .data$CI_low,
ymax = .data$CI_high,
color = .data$key
),
position = ggplot2::position_nudge(x = 0.2),
size = 1.5 * size_line,
linewidth = 1.5 * size_line,
stroke = 0,
shape = 16
) +
p1 <- ggplot2::ggplot() +
ggplot2::geom_pointrange(
data = x_errorbars[x_errorbars$key == "Model-predicted data", ],
mapping = ggplot2::aes(
x = .data$x,
y = .data$count,
ymin = .data$CI_low,
ymax = .data$CI_high,
color = .data$key
),
position = ggplot2::position_nudge(x = 0.2),
size = 1.5 * size_line,
linewidth = 1.5 * size_line,
stroke = 0,
shape = 16
) +
ggplot2::geom_point(
data = x_errorbars[x_errorbars$key == "Observed data", ],
mapping = ggplot2::aes(
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,10 @@ line-spacing="2">

<div id="ref-Ben-Shachar2020" class="csl-entry">

Ben-Shachar, M. S., Lüdecke, D., & Makowski, D. (2020). <span
class="nocase">e</span>ffectsize: Estimation of effect size indices and
standardized parameters. *Journal of Open Source Software*, *5*(56),
2815. <https://doi.org/10.21105/joss.02815>
Ben-Shachar, M. S., Lüdecke, D., & Makowski, D. (2020).
<span class="nocase">e</span>ffectsize: Estimation of effect size
indices and standardized parameters. *Journal of Open Source Software*,
*5*(56), 2815. <https://doi.org/10.21105/joss.02815>

</div>

Expand All @@ -507,8 +507,8 @@ Open Source Software*, *6*(60), 3139.

<div id="ref-Makowski2019" class="csl-entry">

Makowski, D., Ben-Shachar, M. S., & Lüdecke, D. (2019). <span
class="nocase">bayestestR</span>: Describing effects and their
Makowski, D., Ben-Shachar, M. S., & Lüdecke, D. (2019).
<span class="nocase">bayestestR</span>: Describing effects and their
uncertainty, existence and significance within the Bayesian framework.
*Journal of Open Source Software*, *4*(40), 1541.
<https://doi.org/10.21105/joss.01541>
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

0 errors | 0 warnings | 0 note

* Updates docs and tests for the latest `{ggplot2}` release.
* Maintenance release.

## revdepcheck results

Expand Down
Binary file modified man/figures/bayestestR-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/correlation-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/unnamed-chunk-10-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/unnamed-chunk-12-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/unnamed-chunk-9-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b6d0b83

Please sign in to comment.