plot_scatterplot_with_density: Scatterplot with density sidebars

View source: R/plot_scatterplot_with_density.R

plot_scatterplot_with_densityR Documentation

Scatterplot with density sidebars

Description

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.

Usage

plot_scatterplot_with_density(scenario, xValue, yValue)

Arguments

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.

Value

layot of ggplot objects

Examples

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')

battleVerse/nautilus documentation built on July 16, 2024, 4:20 a.m.