powered by
build_diff Prepares a data frame for a ggplot object to compare differences using linear interpolation.
build_diff(df, xvar)
data frame using (common) interpolated x values rather than arbitrary x values
data frame
name of variable to consider as 'x': interpolate over evenly spaced values of this variable.
# Only used internally
Run the code above in your browser using DataLab