plot_relative_truth_and_sensor: Plot truth and/or sensor data relative to ownship

View source: R/plot_relative_truth_and_sensor.R

plot_relative_truth_and_sensorR Documentation

Plot truth and/or sensor data relative to ownship

Description

This figure shows the bearing and range of targets and/or tracks relative to the sensor system (ownship).

Usage

plot_relative_truth_and_sensor(
  scenario,
  offset = 1,
  textSize = 3,
  hideLegend = FALSE,
  useDefaultColors = FALSE,
  plotWhich = "both"
)

Arguments

scenario

must contain either or both: targetOwnshipDistance, trackOwnshipDistance

offset

(default = 1) amount to offset labels (in degrees)

textSize

(default = 3) size of label text

hideLegend

hides the legend to make the graph easier to read (default=FALSE)

useDefaultColors

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

plotWhich

(default = 'both') also accepts 'sensor' or 'truth'. Plots only truth-ownship or track-ownship or plots both.

Value

ggplot object

Examples

plot_relative_truth_and_sensor(example1_scenario, offset = 1, textSize = 3)

battleVerse/scenarioMaker documentation built on July 16, 2024, 4:21 a.m.