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 )
CompTreatTable
: Output of Compare_VertexClasses_sharedEdgeFeaturestreat1
: Name of treatment one, default Treatment1. It should match the column names of the output of Compare_VertexClasses_sharedEdgeFeaturestreat2
: Name of treatment one, default Treatment2. It should match the column names of the output of Compare_VertexClasses_sharedEdgeFeaturesfactorOrder
: A list specifying the order of the treatments.col1
: Color for Treatment 1col2
: Color for Treatment 2maxpairs
: If number of class-vertex-pairs > maxpairs, display number pairs on top of barxlb
: Name for x-axisylb
: Name for the y-axisszggrepel
: Size ggrepel labelsnudgey
: Nudge y ggrepelnudgex
: Nudge x ggrepelszaxisTxt
: Size axis textszaxisTitle
: Size axis titleA ggplot object for a barplot. The barplot shows the vertex-class pairs profile of all shared edge features between treatments
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")
Useful links