qqunif: qqunif

Description Usage Arguments Value Examples

View source: R/qqunif.R

Description

Create qqplots with an assumed uniform distribution

Usage

1
2
3
qqunif(d, CI = 0.95, opacity = 1, groupcolors, splitby = NULL,
  highlight_p, highlight_name, annotate_p, annotate_name, highlighter = "red",
  line, background, title, file = "qqunif", wi = 7, hgt = 7, res = 300)

Arguments

d

dataframe with at least one column, p-value; Color, Shape, and Name optional

CI

two-sided confidence interval, default 0.95

opacity

point opacity, default 1

groupcolors

named vector of colors corresponding to data in Group column

splitby

if data contains Color and/or Shape, indicate variable(s) by which the data should be subsetted for calculating CIs

highlight_p

p-value threshold to highlight

highlight_name

vector of names to highlight, dataframe must include a Name column

annotate_p

p-value threshold to annotate, dataframe must include a Name column

annotate_name

vector of names to annotate, dataframe must include a Name column

highlighter

highlighter color

line

draw a red line at pvalue threshold (observed)

background

can change to "white"

title

plot title

file

filename

wi

width of plot

hgt

height of plot

res

resolution of plot

Value

png image(s)

Examples

1
2
3
data(gwas)
qqdat <- data.frame(pvalue=gwas$pvalue, Color=gwas$Frame)
qqunif(d=qqdat, opacity=0.6, splitby="Color")

anastasia-lucas/plotman documentation built on July 13, 2020, 11:47 p.m.