R: Exploratory visualization of information spread of biological...
plot.NetworkSperical
R Documentation
Exploratory visualization of information spread of biological networks
Description
Global layout style:
A visualization of a network in a spherical form. The node with the highest degree is placed in the center, and its neighbors are plotted around this node in a circular manner. Whenever a node is encountered with multiple neighbors, the neighbors are plotted into the direction of that node. This process continues until all nodes are placed. This gives a compact spherical view of the network.
Usage
## S3 method for class 'NetworkSperical'
plot(x, mo="in", tkplot = FALSE,
v.lab=FALSE, v.size=1, bg="black", ...)
Arguments
x
x is a graph object created from an adjacency matrix or from a tabular data of two columns using graph() function available in igraph.
mo
mo represents the mode of nodes. Can be either in or out.
tkplot
it is a boolean variable, if it is true, function will use 'tkplot' function to plot a graph, if it is false function will use plot function with the black background.
v.lab
v.lab is a logical value to show vertex label.
v.size
v.size is a numeric value to assign the size of nodes.
bg
bgis a color value to adjust background color of the plot.
...
... parameter for other inputs.
Value
Plots the input graph object using tkplot function.
#Example 1
g <- barabasi.game(500, directed = TRUE)
xx <- plot.NetworkSperical(g, mo = "in", tkplot=FALSE)
# Example 2
g <- erdos.renyi.game(100, p=.1)
xx <- plot.NetworkSperical(g)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(netbiov)
Loading required package: igraph
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/netbiov/plot.NetworkSperical.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.NetworkSperical
> ### Title: Exploratory visualization of information spread of biological
> ### networks
> ### Aliases: plot.NetworkSperical
>
> ### ** Examples
>
> #Example 1
> g <- barabasi.game(500, directed = TRUE)
> xx <- plot.NetworkSperical(g, mo = "in", tkplot=FALSE)
>
> # Example 2
> g <- erdos.renyi.game(100, p=.1)
> xx <- plot.NetworkSperical(g)
>
>
>
>
>
>
>
>
> dev.off()
null device
1
>