plot.solution: Plots the Dolution of the Maze

Description Usage Arguments Examples

Description

Draws a line from the start to the finish

Usage

1
2
## S3 method for class 'solution'
plot(x, ...)

Arguments

x

a maze object

...

additional parameters for the line command

Examples

1
2
3
4
5
6
maze <- makeMazeRecursiveBacktracker()
d <- distance(maze)
s <- solveMaze(maze, d)
plot(maze)
plot(d)
plot(s)

Ziegelsteintom/rmazing documentation built on May 10, 2019, 1:58 a.m.