plot_truth_data_plotly: Plot truth data with plotly

View source: R/plot_truth_data_plotly.R

plot_truth_data_plotlyR Documentation

Plot truth data with plotly

Description

This function shows an overview of the test and plots the ownship data and/or the truth data in a plotly figure. Plotly figures are interactive, and users can zoom in, hover over data points for more info, and click to hide tracks or targets.

Usage

plot_truth_data_plotly(scenario, useDefaultColors = FALSE, legendOnly = FALSE)

Arguments

scenario

must contain either or both: targetTruth, ownShipTruth

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_truth_data_plotly(scenarioMaker::example1_scenario)

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