PlotMyGame {SnakesAndLaddersAnalysis} | R Documentation |
This function plots the result from the SnakesAndLaddersGame Function.
PlotMyGame(output.from.SnakesAndLaddersGame.function, legend = TRUE)
output.from.SnakesAndLaddersGame.function |
The output from the SnakesAndLaddersGame function. |
legend |
Takes value TRUE or FALSE, if TRUE, displays the legend for the plot. |
Function that takes output from the SnakesAndLaddersGame function and plots it with an appropriate legend and nice colours to represent each players game. Only accepts number of players between 1 and 7.
A plot |
Plots the players position on each roll. |
Hector Haffenden haffendenh@cardiff.ac.uk
PlotMyGame(SnakesAndLaddersGame(1))
PlotMyGame(SnakesAndLaddersGame(3))
PlotMyGame(SnakesAndLaddersGame(7))