Vertex-class pairs profile of one shared edge feature
This function will create a barplot from the output of Compare_VertexClasses_sharedEdgeFeatures for a specific shared Edge Feature (e.g., a shared gene).
create_edgeFBarplot( CompTreatTable, edgeF, treat1 = "Treatment1", treat2 = "Treatment2", factorOrder = NULL, col1 = "red", col2 = "blue", EdgeFeatureType = "Edge Feature", xlb = "Vertex-Class Pairs", ylb = "Number of pairs", szaxisTxt = 12, szaxisTitle = 12 )
CompTreatTable
: Output of Compare_VertexClasses_sharedEdgeFeaturesedgeF
: Edge feature present in 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 2EdgeFeatureType
: Type of Edge Feature (e.g., Gene)xlb
: Name for x-axisylb
: Name for the y-axisszaxisTxt
: Size axis textszaxisTitle
: Size axis titlesA ggplot object for a barplot. The barplot shows the vertex-class pairs profile of a single shared edge feature between two treatments
data(VertexClassesSharedGenes_HFDvsChow) create_edgeFBarplot(CompTreatTable = VertexClassesSharedGenes_HFDvsChow, edgeF = "Lilr4b", treat1 = "HFD", treat2 = "Chow", factorOrder = c("HFD","Chow"), EdgeFeatureType = "Gene")
Useful links