Learn R Programming

LANDD (version 1.1.0)

visualize: Visualize: Generate a graph which vividly displays the gene X, Y and W.

Description

visualize() generates a graph. It is used to intuitively and vividly display the layout of gene X, Y and W.

Usage

visualize(graph, kernel.result, x, k = 2, cutoff = 1, path = NULL)

Arguments

graph
The igraph object of gene network.
kernel.result
The result of graph.kd which finds genes W of a gene X.
x
The gene the plot is generated for.
k
The degree of the neighborhood of X.
cutoff
A threshold to filter gene W.
path
The path where the result graph is saved to. The default path is the original path of input graph.

Value

a graph of gene X, Y and W

Examples

Run this code
## Not run: 
# kernel <- graph.kd(relate.matrix,g,smoothing.normalize = "one")
# visualize(g,kernel,x,k=2,cutoff=1,path= NULL)## End(Not run)

Run the code above in your browser using DataLab