View source: R/plot_truth_data_plotly.R
plot_truth_data_plotly | R Documentation |
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.
plot_truth_data_plotly(scenario, useDefaultColors = FALSE, legendOnly = FALSE)
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 |
plotly object
plot_truth_data_plotly(scenarioMaker::example1_scenario)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.