aeman: aeman

Description Usage Arguments Value See Also Examples

View source: R/aeman.R

Description

Create animated Manhattan plots for EWAS

Usage

1
2
3
4
5
aeman(d, line, log10 = TRUE, yaxis, ymax, opacity = 1, title = NULL,
  annotate_var, annotate_p, highlight_var, highlight_p, highlighter = "red",
  color1 = "#AAAAAA", color2 = "#4D4D4D", groupcolors,
  background = "variegated", grpblocks = FALSE, file = "aeman",
  ext = "gif", hgt = 800, wi = 1300)

Arguments

d

data frame, columns are Variable, pvalue, Group, and Frame; Shape and Color optional

line

optional pvalue threshold to draw red line at

log10

plot -log10() of pvalue column, boolean

yaxis

label for y-axis, automatically set if log10=TRUE

ymax

set the upper limit for the y-axis if not automatically scaled

opacity

opacity of points, from 0 to 1, useful for dense plots

title

optional string for plot title

annotate_var

vector of variables to annotate

annotate_p

pvalue threshold to annotate

highlight_var

vector of variables to highlight

highlight_p

pvalue threshold to highlight

highlighter

color to highlight

color1

first alternating color

color2

second alternating color

groupcolors

named vector of colors for data in 'Color' column

background

variegated or white

grpblocks

boolean, turns on x-axis group marker blocks

file

file name of saved image

ext

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

hgt

height of plot in pixels

wi

width of plot in pixels

Value

.gif or .mp4 file

See Also

eman, ieman, agman, apheman

Other EWAS functions: eman, ieman

Other animated plotting functions: agman, apheman

Examples

1
2
3
4
data(ewas)
ewas$Frame <- ewas$Group
aeman(ewas, line=0.001, highlight_p=0.001, annotate_p=0.001, highlighter="green",
title="EWAS Example:")

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