huge.plot: Graph visualization

Description Usage Arguments Details See Also Examples

View source: R/huge.plot.R

Description

Implements the graph visualization using adjacency matrix. It can automatic organize 2D embedding layout.

Usage

1
2
3
4
5
6
7
huge.plot(
  G,
  epsflag = FALSE,
  graph.name = "default",
  cur.num = 1,
  location = NULL
)

Arguments

G

The adjacency matrix corresponding to the graph.

epsflag

If epsflag = TRUE, save the plot as an eps file in the target directory. The default value is FALSE.

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 epsflag = TRUE. The default value is 1.

location

Target directory. The default value is the current working directory.

Details

The user can change cur.num to plot several figures and select the best one. The implementation is based on the popular package "igraph".

See Also

huge and huge-package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## visualize the hub graph
L = huge.generator(graph = "hub")
huge.plot(L$theta)

## visualize the band graph
L = huge.generator(graph = "band",g=5)
huge.plot(L$theta)

## visualize the cluster graph
L = huge.generator(graph = "cluster")
huge.plot(L$theta)

## plot 5 graphs and save the plots as eps files in the tempdir()
huge.plot(L$theta, epsflag = TRUE, cur.num = 5, location = tempdir())

huge documentation built on July 1, 2021, 1:06 a.m.