create_GlobalBarplot: Vertex-class pairs profile of shared features

Description Usage Arguments Value Examples

Description

This function will create a barplot from the output of Compare_VertexClasses_sharedEdgeFeatures using all shared Edge Features (e.g., genes).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
create_GlobalBarplot(
  CompTreatTable,
  treat1 = "Treatment1",
  treat2 = "Treatment2",
  factorOrder = NULL,
  col1 = "red",
  col2 = "blue",
  maxpairs = 1,
  xlb = "Vertex-Class Pairs",
  ylb = "Number of pairs",
  szggrepel = 3.5,
  nudgey = 0.5,
  nudgex = 0.5,
  szaxisTxt = 12,
  szaxisTitle = 12
)

Arguments

CompTreatTable

Output of Compare_VertexClasses_sharedEdgeFeatures

treat1

Name of treatment one, default Treatment1. It should match the column names of the output of Compare_VertexClasses_sharedEdgeFeatures

treat2

Name of treatment one, default Treatment2. It should match the column names of the output of Compare_VertexClasses_sharedEdgeFeatures

factorOrder

A list specifying the order of the treatments.

col1

Color for Treatment 1

col2

Color for Treatment 2

maxpairs

If number of class-vertex-pairs > maxpairs, display number pairs on top of bar

xlb

Name for x-axis

ylb

Name for the y-axis

szggrepel

Size ggrepel labels

nudgey

Nudge y ggrepel

nudgex

Nudge x ggrepel

szaxisTxt

Size axis text

szaxisTitle

Size axis title

Value

A ggplot object for a barplot. The barplot shows the vertex-class pairs profile of all shared edge features between treatments

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(VertexClassesSharedGenes_HFDvsChow)
create_GlobalBarplot(CompTreatTable = VertexClassesSharedGenes_HFDvsChow,
                     treat1 = "HFD",
                     treat2 = "Chow",
                     factorOrder = c("HFD","Chow"),
                     col1="red",
                     col2 ="blue",
                     maxpairs = 1,
                     szggrepel = 6,
                     szaxisTxt = 15,
                     szaxisTitle = 15,
                     xlb = "Metabolite-pair classes")

CoNI documentation built on Sept. 30, 2021, 5:09 p.m.