Plot a maze's graph.
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), ...)
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(). |