aqqunif: aqqunif

Description Usage Arguments Value Examples

View source: R/aqqunif.R

Description

Create animated qqplots with an assumed uniform distribution

Usage

1
2
3
4
aqqunif(d, CI = 0.95, opacity = 1, groupcolors, splitby = NULL,
  highlight_p, highlight_name, annotate_p, annotate_name, highlighter = "red",
  line, background, title, file = "aqqunif", ext = "gif", wi = 800,
  hgt = 800)

Arguments

d

dataframe with at least two columns, p-value and Frame; 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

ext

file type to save, "gif" or "mp4"

wi

width of plot in pixels

hgt

height of plot in pixels

Value

png image(s)

Examples

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

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