plot_sensor_and_truth_data_plotly: Plot both sensor and truth data with plotly

View source: R/plot_sensor_and_truth_data_plotly.R

plot_sensor_and_truth_data_plotlyR Documentation

Plot both sensor and truth data with plotly

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). Targets and tracks are not labeled because they can be seen by hovering over a point in plotly figures. Plotly figures are interactive, and users can zoom in, hover over data points for more info, and click to hide tracks or targets.

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_plotly(
  scenario,
  useDefaultColors = FALSE,
  legendOnly = FALSE
)

Arguments

scenario

MUST contain one of: targetTruth, ownShipTruth, and sensorData

useDefaultColors

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

legendOnly

(boolean, default = FALSE) Initially populates plot with only the legend. Data can be turned on by selecting the data from the legend. Good for plots with a large number of traces

Value

plotly object

Examples

plot_sensor_and_truth_data_plotly(example1_scenario)

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