qqthin: Plot qq-plot from p-values with shading

Description Usage Arguments Details Value

View source: R/qqthin.R

Description

Plot qq-plot from p-values with shading

Usage

1
2
qqthin(pvals, thin = c(0.25, 100), shade = TRUE, truncate = Inf,
  group = NULL)

Arguments

pvals

vector of p-values

thin

Vector of two thinning parameters. The first should be between 0 and 1. The second should be an integer. If thin = c(q, c) then, from the least significant q proportion of pvalues, we will plot only a randomly selected c. This prevents the plot from being huge.

shade

If true, include 95% confidence bounds.

truncate

If truncate = t, then p-values with -log10(p-val) > t will be plotted as triangles at t. Defaults to Inf.

group

Optionally provide a vector of group labels.

Details

Uses working model 4 described here: https://jean997.github.io/sh2Ash/mh_test.html

Value

A ggplot object


jean997/sherlockAsh documentation built on Oct. 6, 2018, 3:14 p.m.