Skip to content

nhstplot

Plot Null Hypothesis Significance Tests

v1.4.2 · Nov 24, 2025 · GPL-3

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.

Downloads

276

Last 30 days

15253rd

715

Last 90 days

3.4K

Last year

Trend: +7% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies ggplot2 nhstplot

Version History

new 1.4.2 Mar 10, 2026
updated 1.4.2 ← 1.4.1 diff Nov 23, 2025
updated 1.4.1 ← 1.4.0 diff Nov 7, 2025
updated 1.4.0 ← 1.3.0 diff Jul 29, 2025
updated 1.3.0 ← 1.2.0 diff Feb 29, 2024
updated 1.2.0 ← 1.1.0 diff Apr 10, 2023
updated 1.1.0 ← 1.0.1 diff Apr 13, 2020
updated 1.0.1 ← 1.0.0 diff Nov 18, 2016
new 1.0.0 Sep 1, 2016