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 | camel.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, and Han Liu
Maintainer: Xingguo Li <xingguo.leo@gmail.com>
camel
and camel-package
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## visualize the hub graph
L = camel.tiger.generator(graph = "hub")
camel.plot(L$theta)
## visualize the band graph
L = camel.tiger.generator(graph = "band",g=5)
camel.plot(L$theta)
## visualize the cluster graph
L = camel.tiger.generator(graph = "cluster")
camel.plot(L$theta)
#show working directory
getwd()
#plot 5 graphs and save the plots as eps files in the working directory
camel.plot(L$theta, epsflag = TRUE, cur.num = 5)
|
Loading required package: lattice
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
Loading required package: MASS
Loading required package: Matrix
Generating data from the multivariate normal distribution with the hub graph structure....done.
Generating data from the multivariate normal distribution with the band graph structure....done.
Generating data from the multivariate normal distribution with the cluster graph structure....done.
[1] "/work/tmp"
png
2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.