Learn R Programming

SPARRAfairness (version 0.1.0.0)

build_diff: 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)

Value

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

Arguments

df

data frame

xvar

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

Examples

Run this code
# Only used internally

Run the code above in your browser using DataLab