create_edgeFBarplot {CoNI}R Documentation

Vertex-class pairs profile of one shared edge feature

Description

This function will create a barplot from the output of Compare_VertexClasses_sharedEdgeFeatures for a specific shared Edge Feature (e.g., a shared gene).

Usage

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
)

Arguments

CompTreatTable

Output of Compare_VertexClasses_sharedEdgeFeatures

edgeF

Edge feature present in 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

EdgeFeatureType

Type of Edge Feature (e.g., Gene)

xlb

Name for x-axis

ylb

Name for the y-axis

szaxisTxt

Size axis text

szaxisTitle

Size axis titles

Value

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

Examples

data(VertexClassesSharedGenes_HFDvsChow)
create_edgeFBarplot(CompTreatTable = VertexClassesSharedGenes_HFDvsChow,
                    edgeF = "Lilr4b",
                    treat1 = "HFD",
                    treat2 = "Chow",
                    factorOrder = c("HFD","Chow"),
                    EdgeFeatureType = "Gene")

[Package CoNI version 0.1.0 Index]