print.maze | R Documentation |
Display a maze
object.
## S3 method for class 'maze'
print(x, ..., walls = FALSE, start = NULL, end = NULL, compress = "v")
x |
A |
... |
Further arguments passed to
|
walls |
logical value, indicating that the walls of the maze should be
plotted, rather than the paths through the maze. Default is |
start , end |
The coordinates of the starting and ending points of a path
through the maze, or descriptions of relative locations (eg.
|
compress |
How to compress the bitmap representation, see
|
If the bittermelon
package is available,
print.maze
prints a representation of the maze az a bitmap object.
Otherwise, it prints the matrix representation.
m <- maze(10,10)
print(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.