plot_graph: Plot a maze's graph.

Description Usage Arguments

Description

Plot a maze's graph.

Usage

1
2
3
4
plot_graph(g, layout = NULL, labels = TRUE, edge.color = "black",
  vertex.color = "black", vertex.fill = "white", vertex.size = 15,
  vertex.label.color = "black", vertex.label.size = 5,
  path.show = FALSE, path.start = 1, path.end = vcount(g), ...)

Arguments

g

graph with maze structure.

layout

layout (default taken from g$layout).

labels

logical; whether to plot node labels.

edge.color

color used for edges.

vertex.color

color used for node borders.

vertex.fill

color used for nodes.

vertex.size

node size.

vertex.label.color

color used for node labels.

vertex.label.size

size used for node labels.

path.show

logical; whether to show the path between two nodes.

path.start

path starting node.

path.end

path end node.

...

extra arguments passed down to geom_segment().


ddiez/maze documentation built on May 15, 2019, 1:51 a.m.