plot_timeSeries | R Documentation |
Provides convenience function to plot simulation trajectory of result from one run as time series. Supports plotting multiple states in faceted plot.
plot_timeSeries(df_result, start_time, end_time, sample_time, tick_time, ...)
df_result |
Data frame containing results to plot. Must have column $time. |
start_time |
Plot start time. |
end_time |
Plot end time. |
sample_time |
Time interval to subset data. |
tick_time |
X-axis label break interval time (default 2*sample_time). |
... |
... < |
Support the following features:
flexible start-end time of the series by start_time
and end_time
.
row subset of data by a fixed sample_time
(useful when time step is small for numerical precision).
flexible time tick label spacing by tick_time
.
states to plot are selected by tidy-select
.
Please note that this function does not attempt to do exhaustive sanity check of parameters Make sure yourself that parameters make sense (e.g., end-start time must be longer than sample_time and tick_time, etc.)
ggplot object of faceted time series
vignette("clock-models", "clockSim")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.