Package: nhstplot
Type: Package
Title: Plot Null Hypothesis Significance Tests
Version: 1.4.2
Authors@R: person("Nils", "Myszkowski", email = "nilsmyszkowskiscience@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-1322-0777"))
Description: Illustrate graphically the most common Null Hypothesis Significance Testing procedures. More specifically, this package provides functions to plot Chi-Squared, F, t (one- and two-tailed) and z (one- and two-tailed) tests, by plotting the probability density under the null hypothesis as a function of the different test statistic values. Although highly flexible (color theme, fonts, etc.), only the minimal number of arguments (observed test statistic, degrees of freedom) are necessary for a clear and useful graph to be plotted, with the observed test statistic and the p value, as well as their corresponding value labels. The axes are automatically scaled to present the relevant part and the overall shape of the probability density function. This package is especially intended for education purposes, as it provides a helpful support to help explain the Null Hypothesis Significance Testing process, its use and/or shortcomings.
License: GPL-3
Depends: R (>= 3.5.0)
Imports: ggplot2 (>= 3.5.0), stats, grDevices
RoxygenNote: 7.3.2
Suggests: knitr, rmarkdown
VignetteBuilder: knitr
Encoding: UTF-8
NeedsCompilation: no
Packaged: 2025-11-24 00:23:19 UTC; nils
Author: Nils Myszkowski [aut, cre] (ORCID:
    <https://orcid.org/0000-0003-1322-0777>)
Maintainer: Nils Myszkowski <nilsmyszkowskiscience@gmail.com>
Repository: CRAN
Date/Publication: 2025-11-24 12:10:02 UTC
Built: R 4.7.0; ; 2026-06-10 02:48:49 UTC; windows
