View source: R/plot_scatterplot_with_density.R
plot_scatterplot_with_density | R Documentation |
This figure plots any two continuous variables together to check for systematic bias. We recommend using bearingError and downrangeError.
Note: This is a more generic function and therefore can be used for other comparisons. However, this means that the user must specify that the data to be plotted should not include points labeled as false tracks.
plot_scatterplot_with_density(scenario, xValue, yValue)
scenario |
MUST contain assignmentData (from target_assignment()) |
xValue |
the variable to be plotted on the x-axis. Can be any of the columns in assignmentData. Must be put into a string. We generally recommend "bearingError", however any continuous value can be used. |
yValue |
the variable to be plotted on the y-axis. Can be any of the columns in assignmentData. Must be put into a string. We generally recommend "downrangeError", however any continuous value can be used. |
layot of ggplot objects
myScenario=scenarioMaker::example1_scenario %>% target_assignment("point",cutoff=100)
myScenario$assignmentData = myScenario$assignmentData %>% filter(isFalseTrack == FALSE)
plot_scatterplot_with_density(myScenario, xValue = 'bearingError', yValue = 'downrangeError')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.