Plot given raw signal in illustration diagram style.
Plot given raw signal in illustration diagram style.
illustrate_signal plots the given uniaxial signal in illustration diagram style. Illustration diagram style hides axes markers, unnecessary guidelines.
data: data.frame. The input uniaxial signal. First column should be timestamp.
point_size: number. The size of the plotted data point.
plot_point: Bool. Plot signal as points if TRUE.
line_size: number. The line width of the plotted signal curve.
plot_line: Bool. Plot signal with curve if TRUE.
range: vector. Dynamic range of the signal.
plot_maxed_out_line: Bool. Plot dynamic range lines if TRUE. Dynamic range is set by range.
plot_origin: Bool. Plot the 0 horizontal line if TRUE.
title: Char. The title of the plot.
plot_title: Bool. Plot title if TRUE.
Returns
ggplot2 graph object. The graph to be shown.
Examples
# Use sample data for testing df = sample_raw_accel_data
# Plot it with default settings illustrate_signal(df)# Plot with a different style illustrate_signal(df, point_size=1, line_size=1)# Turn off annotation lines illustrate_signal(df, plot_maxed_out_line =FALSE, plot_origin =FALSE)# Use title illustrate_signal(df, plot_title=TRUE, title ="This is a title")
See Also
Other visualization functions.: generate_interactive_plot(), illustrate_extrapolation()