gxeman: gxeman

Description Usage Arguments Value Examples

Description

Create heatmap plots for SNPxE or GxE interaction Dependencies: ggplot2

Usage

1
2
3
4
gxeman(d, snpme, envme, highlight_p = 0.05, legend = "p-value",
  title = NULL, high = "#02021e", low = "#1A0F99",
  highlight_high = "yellow", highlight_low = "#fffcd3", file = "gxgman",
  hgt = 7, wi = 7.5, res = 300)

Arguments

d

data frame, must contain SNP, ENV, CHR, POS, pvalue columns, optional Group column (for grouping ENV)

snpme

optional main effect data frame containing SNP, CHR, POS, pvalue columns, optional Shape column

envme

optional main effect data frame containing ENV and pvalue columns, optional Group column (for grouping ENV)

highlight_p

threshold to diverge gradient color scale, default 0.05, set to "off" for no threshold

legend

title for color legend, default "p-value"

title

optional string for plot title

high

color for high values

low

color for low values

highlight_high

if highlight_p given, color for max of highlight range

highlight_low

if highlight_p given, color for min of highlight range

file

file name of saved image

hgt

height of plot in inches

wi

width of plot in inches

res

resolution of plot in pixels per inch

Value

png image

Examples

1
gxeman(d, me, symmetric, highlight_p, legend, title, high, low, highlight_high, highlight_low, file, hgt, wi, res)

anastasia-lucas/nightlight documentation built on May 14, 2019, 6:09 a.m.