Learn R Programming

FracFixR (version 1.0.0)

PlotComparison: PlotComparison: Create Volcano Plot for Differential Results

Description

Generates avolcano plot showing transcripts with significant differential proportions between conditions.

Usage

PlotComparison(DiffPropResult, Conditions = NULL, Types = NULL, cutoff = NULL)

Value

Volcano plot-type object

Arguments

DiffPropResult

Output from DiffPropTest() function

Conditions

Character vector of conditions being compared

Types

Character vector of fraction types analyzed

cutoff

Optional y-axis maximum for plot

Examples

Run this code
data(example_counts)
data(example_annotation)

# Run FracFixR
results <- FracFixR(example_counts, example_annotation,parallel=FALSE)
# Run differential testing
diff_results <- DiffPropTest(results,
                            Conditions = c("Control", "Treatment"),
                            Types = "Heavy_Polysome",
                            Test = "GLM")
# Create volcano plot
volcano <- PlotComparison(diff_results, 
                         Conditions = c("Control", "Treatment"),
                         Types = "Heavy_Polysome")

Run the code above in your browser using DataLab