View source: R/plot_sensor_and_truth_data.R
plot_sensor_and_truth_data | R Documentation |
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.
plot_sensor_and_truth_data(
scenario,
offset = 0.01,
textSize = 3,
lineWidth = 1,
pointSize = 1,
hideLegend = FALSE,
hideLabels = FALSE,
useDefaultColors = FALSE
)
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 |
ggplot object
plot_sensor_and_truth_data(example1_scenario, offset = 0.01, textSize = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.