checkPlot: Create a checkplot

View source: R/checkFuns.R

checkPlotR Documentation

Create a checkplot

Description

Visual tool to determine if nominal p-values for Monte-Carlo simulations under a given (null) hypothesis is true have uniform distribution

Usage

checkPlot(stats, breaks = seq(0, 1, 0.05), tag = "", Wmin = 0, facets = 1)

Arguments

stats

Dataframe with a column called p containing nominal p-values

breaks

Numeric vector in [0,1], determining bar widths for geom_histogram

tag

optional character string for a ggtitle

Wmin

scalar, to filter the df stats

facets

Integer, number of facets if using facet_wrap or similar

Value

ggplot object, a "checkPlot"


dushoff/checkPlots documentation built on Jan. 9, 2025, 11:10 a.m.