ggFourWay: Four-Way plot for comparison of log fold changes in a...

Description Usage Arguments Details Author(s) Examples

Description

This function allows you to extract necessary results-based data from a DESeq object class to create a four-way plot to compare log fold changes in various treatments using ggplot2 aesthetics.

Usage

1
2
ggFourWay(data, x.level, y.level, control, factor, padj = 0.05, xlim = NULL,
  ylim = NULL, lfc = NULL)

Arguments

data

a DESeq object class with multiple factors and levels

x.level

treatment for the x-axis of the plot

y.level

treatment for the y-axis of the plot

control

experimental control used in the experiment

factor

factor given for the DESeq object for specific treatments

padj

significance threshold for adjusted p-value highlighting

xlim

optional limits to the x-axis

ylim

optional limits to the y-axis

lfc

foldchange threshold for visualization

Details

This function allows the user to extract various elements from a DESeq object class which in turn, creates a temporary data frame to plot the necessary ggplot aesthetics. In order for this function to work, RNA seq experiments must have multiple factors and levels including treatments and controls. By having the recommended criteria, this function will extract the necessary data by exploiting DESeq's 'contrast' parameters. Data points with 'extreme' values that exceed the default viewing frame of the plot will change character classes (i.e. points of interest a substantially large log fold change).

Author(s)

Brandon Monier, brandon.monier@sdstate.edu

Examples

1

btmonier/ggDESeq documentation built on May 13, 2019, 8:40 a.m.