pxg_plot: PxG plot

Description Usage Arguments Value

Description

pxg_plot generates a boxplot of phenotypes split by genotype at QTL peak position using ggplot2

Usage

1
2
pxg_plot(plot_df, loc = NA, use_base = F, color_strains = c("N2",
  "CB4856"))

Arguments

plot_df

the output from the gwas_mappings function.

loc

custom location to output the pxg plot. Specified as CHROM:POS (e.g. II:1023423)

use_base

Show base at position rather than REF/ALT.

color_strains

character vector containing strains to color in plot. Default is c("N2","CB4856")

Value

Ouput is a ggplot object facetted by peak SNP (if there are multiple peaks in a mapping). Genotypes are encoded as REF or ALT and are on the x-axis. Phenotypes are on y-axis.


AndersenLab/cegwas documentation built on March 6, 2020, 1:10 a.m.