gxgman: gxgman

Description Usage Arguments Value Examples

Description

Create heatmap plots for SNPxSNP or GxG interaction Dependencies: ggplot2

Usage

1
2
3
4
gxgman(d, me, symmetric = TRUE, 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 SNP1, CHR1, POS1, SNP2, CHR2, POS2, pvalue columns

me

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

symmetric

boolean, should the plot be symmetric

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
gxgman(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.