plot_add_engagements: Plot SUW combat money chart

View source: R/plot_add_engagements.R

plot_add_engagementsR Documentation

Plot SUW combat money chart

Description

This figure plots target range as a function of time

Usage

plot_add_engagements(scenario, useDefaultColors = TRUE)

Arguments

scenario

must contain the following items:

useDefaultColors

(default=FALSE) if you DO have platformInfo filled in, but want to ignore the colors and use defaults, set this to true targetTruth - (scenarioMaker format)

  • time: (double) time of measurement. We currently recommend POSIX

  • lon: (double) longitude of target at time of measurement

  • lat: (double) latitude of target at time of measurement

  • alt: (double) altitude of target at time of measurement

  • truthID: (factor) name or identifier for target. We recommend letters or names

  • heading: (double) target heading in degrees azimuth

ownShipTruth - (scenarioMaker format)

  • time: (double) time of measurement. We currently recommend POSIX

  • lon: (double) longitude of target at time of measurement

  • lat: (double) latitude of target at time of measurement

  • alt: (double) altitude of target at time of measurement

  • truthID: (factor) name or identifier for target. We recommend letters or names

  • heading: (double) target heading in degrees azimuth

engagementData - who shot whom, with what, when, what color, and did it kill them?

  • time: (double) time of measurement. We currently recommend POSIX

  • source: (factor) the truthID of the shooter

  • target: (factor) the truthID of the thing being shot

  • weapon: (factor) name of the weapon

  • color: (string) color of the weapon (this color will be used in ggplot, plotly, and exported to SIMDIS) (this function doesn't yet respect color)

  • kill: (double) if the engagement killed the target, kill = 1, otherwise kill = 0

Value

plotly object

Examples

plot_add_engagements(scenarioMaker::example1_scenario)

battleVerse/sandTable documentation built on July 16, 2024, 4:20 a.m.