build_diff: build_diff Prepares a data frame for a ggplot object to...

View source: R/SPARRAfairness_functions.R

build_diffR Documentation

build_diff Prepares a data frame for a ggplot object to compare differences using linear interpolation.

Description

build_diff Prepares a data frame for a ggplot object to compare differences using linear interpolation.

Usage

build_diff(df, xvar)

Arguments

df

data frame

xvar

name of variable to consider as 'x': interpolate over evenly spaced values of this variable.

Value

data frame using (common) interpolated x values rather than arbitrary x values

Examples

# Only used internally

SPARRAfairness documentation built on April 11, 2025, 6:17 p.m.