illustrate_extrapolation {MIMSunit} | R Documentation |
Plot illustrations about extrapolation in illustration style.
Description
illustrate_extrapolation
plots elements of extrapolations
(e.g., marked points, reference lines) in the same style as
illustrate_signal
.
Usage
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. |
dynamic_range |
numerical vector. The dynamic ranges of the input
signal. Should be a 2-element numerical vector. |
title |
Char. The title of the plot. |
show_neighbors |
bool. Show the points used for extrapolation if TRUE. |
show_extrapolated_points_and_lines |
bool. Show the extrapolated points and curves used for extrapolation. |
... |
Parameters that can be used to tune extrapolation, including
|
Value
ggplot2 graph object. The graph to be shown.
See Also
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,
c("HEADER_TIME_STAMP", "X")]
# Plot extrapolation illustration using default settings
illustrate_extrapolation(df, dynamic_range=c(-2,2))
# Do not show neighbor points
illustrate_extrapolation(df, dynamic_range=c(-2,2), show_neighbors=FALSE)
# Do not show extrapolated points and lines
illustrate_extrapolation(df,
dynamic_range=c(-2,2),
show_extrapolated_points_and_lines=FALSE)