Description Usage Arguments Details Author(s) See Also Examples
Implements the graph visualization using adjacency matrix. It can automatic organize 2D embedding layout.
1 2 | fastclime.plot(G, epsflag = FALSE, graph.name = "default", cur.num = 1,
location)
|
G |
The adjaceny 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 applicale 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".
Haotian Pang, Han Liu and Robert Vanderbei
Maintainer: Haotan Pang<hpang@princeton.edu>
fastclime
and fastclime-package
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## visualize the hub graph
L = fastclime.generator(graph = "hub")
fastclime.plot(L$theta)
## visualize the band graph
L = fastclime.generator(graph = "band",g=5)
fastclime.plot(L$theta)
## visualize the cluster graph
L = fastclime.generator(graph = "cluster")
fastclime.plot(L$theta)
#show working directory
getwd()
#plot 5 graphs and save the plots as eps files in the working directory
fastclime.plot(L$theta, epsflag = TRUE, cur.num = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.