plotMaze: Given a maze graph, plot a maze.

Description Usage Arguments Value Examples

Description

Given a maze graph, plot a maze.

Usage

1
plotMaze(gD = NA, nrows = 0, ncols = 0, inShiny = FALSE)

Arguments

gD

an existing maze graph object.

nrows

maze hight (number of rows); default value set to 0.

ncols

maze width (number of columns); default value set to 0.

inShiny

a flag that marks whether the function is called from a shiny app or console

Value

This function uses ggplot to plot a maze. Currently, maze enterance and exit points (cells/nodes) are fixed.

Examples

1
2
3
maze1 <- makeGraph(10, 10)
maze1 <- makeMaze_dfs(maze1)
plotMaze(maze1, 10, 10)

Vessy/Rmaze documentation built on May 9, 2019, 9:54 p.m.