Description Usage Arguments Value Examples
Given a maze graph, plot a maze.
1 |
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 |
This function uses ggplot to plot a maze. Currently, maze enterance and exit points (cells/nodes) are fixed.
1 2 3 | maze1 <- makeGraph(10, 10)
maze1 <- makeMaze_dfs(maze1)
plotMaze(maze1, 10, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.