plot_polar_error: Plot [location error / bearing error / range error] by...

View source: R/plot_polar_error.R

plot_polar_errorR Documentation

Plot [location error / bearing error / range error] by [target aspect / bearing to target]

Description

This figure plots one of several choices for system error (location error, range error, bearing error) against the target aspect or the bearing to the target

Usage

plot_polar_error(
  scenario,
  angleTerm = "bearing",
  rTerm = "locationError",
  colorTerm = "tgtAssigned",
  doFacet = FALSE,
  plotFalseTracks = FALSE
)

Arguments

scenario

MUST contain assignmentData (from target_assignment())

angleTerm

(string) the variable plotted as an angle. Currently there are two options:

  • "bearing" - the bearing to the target (are you looking at something straight ahead or to your side?)

  • "aspect" - the target's aspect (is it facing you?)

rTerm

(string) the variable plotted radially. Currently there are three options:

  • "locationError"

  • "bearingError"

  • "downrangeError"

colorTerm

(string) the variable to be split by color. Currently there are two options:

  • "tgtAssigned"

  • "trackNum"

doFacet

(default FALSE) boolean. Determines whether the graph will also facet by colorTerm

plotFalseTracks

(default FALSE) boolead. Determines whether graph will show fast track points or hide them

Value

ggplot object

Examples

myScenario=scenarioMaker::example1_scenario %>%
  target_assignment("point",cutoff=100)

plot_polar_error(scenario=myScenario,
 angleTerm="bearing",
 rTerm = 'locationError',
 doFacet = TRUE,
 plotFalseTracks=FALSE)

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