plot_money_chart: Plot SUW combat money chart

View source: R/plot_money_chart.R

plot_money_chartR Documentation

Plot SUW combat money chart

Description

This figure plots target range from ownship and weapon engagements from ownship against the targets

This figure plots target range as a function of time

Usage

plot_money_chart(scenario)

Arguments

scenario

must contain the following items:

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)

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

Value

ggplot object

Examples

plot_money_chart(scenarioMaker::example1_scenario)

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