plot_sensor_and_truth_data: Plot both sensor and truth data

View source: R/plot_sensor_and_truth_data.R

plot_sensor_and_truth_dataR Documentation

Plot both sensor and truth data

Description

This figure shows an overview of the test and plots the ownship data (thin black line) along with the truth data (solid lines) and the tracks from the sensor (points with connecting lines). The target labels (likely characters or names) are placed above the the first point in time by an amount equal to the offset (in degrees latitude). The track labels (likely numbers) are placed below the last point in time of each track by the same amount. The size of the label text is given by textSize.

This figure can be created before any tracks are assigned to targets to ensure that the user has imported the data correctly and to get an overall picture of the test.

Usage

plot_sensor_and_truth_data(
  scenario,
  offset = 0.01,
  textSize = 3,
  lineWidth = 1,
  pointSize = 1,
  hideLegend = FALSE,
  hideLabels = FALSE,
  useDefaultColors = FALSE
)

Arguments

scenario

MUST contain one of: targetTruth, ownShipTruth, and sensorData

offset

(default = 0.01) amount to offset labels (in degrees latitude)

textSize

(default = 3) size of label text

lineWidth

width of the truth data lines (default=1)

pointSize

point size of the truth data lines (default=1) (setting it to 0 turns off the points completely)

hideLegend

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

hideLabels

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

Value

ggplot object

Examples

plot_sensor_and_truth_data(example1_scenario, offset = 0.01, textSize = 3)

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