Description Usage Arguments Details Value Author(s) References Examples
View source: R/plot.spiral.graph.R
Plots a graph in a spirical fashion, highly connected nodes are placed at center.
1 2 3 4 5 |
x |
|
tp |
is a numeric value, a tuning parameter to get different spirical shapes. |
color.random |
is alogical value, if TRUE, picks colors randomly and assign to nodes depending on their degree |
rank.function |
is a 'function' class returns a two column matrix with number of rows equal to the total nodes in the graph. |
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.size |
is a numeric value or a numeric vector which contains numeric values to assign the size of nodes. |
e.size |
is a numeric value to assign the width to edges. |
e.curve |
is a positive numeric value that adjusts the curvature of the edges. |
v.lab |
is a logical value to show vertex label. |
bg |
name of a color or a hexadecimal code of a color. This option is used to color the background of the plot. The default option is "black". |
e.col |
is a character or a hexadecimal color value to set the color of edges. |
vertex.color |
is a vector of colors assign colors to nodes depending on their degree, from high to low. |
skip |
is an integer value to plot nodes away from the center. |
... |
|
This layout function plots network in a spiral fashion.
returns a list object of 'netbiov' class
Shailesh Tripathi, Frank Emmert-Streib
1 2 3 4 | g <- barabasi.game(500)
x <- plot.spiral.graph(g, 121 )
x <- plot.spiral.graph(g, 120,rank.function=layout.reingold.tilford,
vertex.color="red", e.col="green")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.