plot.distance: Plot Method for a Distance Object

Description Usage Arguments Examples

Description

Adds a rainbow colored interpretation of the distance matrix

Usage

1
2
## S3 method for class 'distance'
plot(x, alpha = 0.3, startingpoint = TRUE, ...)

Arguments

x

a distance matrix

alpha

controls how bright the colors will be

startingpoint

boolean, if TRUE it will plot the starting point of of the distance matrix calculations

...

optional graphics parameter

Examples

1
2
3
4
maze <- makeMazeRecursiveBacktracker()
d <- distance(maze)
plot(maze)
plot(d)

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