sugm.plot | R Documentation |
"sugm"
Implements the graph visualization using adjacency matrix. It can automatic organize 2D embedding layout.
sugm.plot(G, epsflag = FALSE, graph.name = "default", cur.num = 1, location)
G |
The adjacency matrix corresponding to the graph. |
epsflag |
If |
graph.name |
The name of the output eps files. The default value is "default". |
cur.num |
The number of plots saved as eps files. Only applicable when |
location |
Target directory. The default value is the current working directory. |
The user can change cur.num
to plot several figures and select the best one. The implementation is based on the popular package "igraph".
Xingguo Li, Tuo Zhao, Lie Wang, Xiaoming Yuan and Han Liu
Maintainer: Xingguo Li <xingguo.leo@gmail.com>
flare
and flare-package
## load package required library(flare) ## visualize the hub graph L = sugm.generator(graph = "hub") sugm.plot(L$theta) ## visualize the band graph L = sugm.generator(graph = "band",g=5) sugm.plot(L$theta) ## visualize the cluster graph L = sugm.generator(graph = "cluster") sugm.plot(L$theta) ## Not run: #show working directory getwd() #plot 5 graphs and save the plots as eps files in the working directory sugm.plot(L$theta, epsflag = TRUE, cur.num = 5) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.