Description Usage Arguments Value Examples
Plots the cumulative probabilities of costs for a battle simulation
1 2 3 4 5 6 | makeCostPlot(
simulationResults,
attackCol = "red",
defenceCol = "blue",
legend = T
)
|
simulationResults, |
formatted as: |
attackCol |
color to use when side is 'attacker' |
defenceCol |
color to use when side is 'defender' |
legend |
logical() whether to add a legend to the plot |
ggplot object
1 2 3 4 5 | sim <- simulateBattles("30 inf 11 arm 5 ftr arm",
"40 inf 3 ftr",
iterations = 1000,
replications = 2)
makeCostPlot(sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.