create_GlobalBarplot function

Vertex-class pairs profile of shared features

Vertex-class pairs profile of shared features

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

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

Returns

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

Examples

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")
  • Maintainer: José Manuel Monroy Kuhn
  • License: GPL-3
  • Last published: 2021-09-30

Useful links