illustrate_extrapolation plots elements of extrapolations (e.g., marked points, reference lines) in the same style as illustrate_signal.

illustrate_extrapolation(
df,
dynamic_range,
title = NULL,
show_neighbors = TRUE,
show_extrapolated_points_and_lines = TRUE,
...
)

Arguments

df data.frame.The original data before extrapolation. numerical vector. The dynamic ranges of the input signal. Should be a 2-element numerical vector. c(low, high), where low is the negative max value the device can reach and high is the positive max value the device can reach. Char. The title of the plot. bool. Show the points used for extrapolation if TRUE. bool. Show the extrapolated points and curves used for extrapolation. Parameters that can be used to tune extrapolation, including spar, k, and noise_level. See extrapolate for explanations.

Value

ggplot2 graph object. The graph to be shown.

Other visualization functions.: generate_interactive_plot(), illustrate_signal()

Examples

  # Use the maxed-out data for the conceptual diagram
df = conceptual_diagram_data[
conceptual_diagram_data['GRANGE'] == 2,
show_extrapolated_points_and_lines=FALSE)#> Warning: collapsing to unique 'x' values