Description Usage Arguments Value Examples
Given a list of segments separated by an unknown amount of time, one may want to space the segments by some amount of time, so that they can be plotted. This function takes a separating factor, and splits up the segments by either that factor (in seconds), or that many multiples of the largest observed dwell.
1 | bursts.space_out(segments, sep_factor = 1000)
|
segments |
The segments to space out |
sep_factor |
the factor by which to separate the segments. Either the factor in seconds, or a multiple of the longest observed dwell. |
The segments again, but with modified meta-data.
1 2 3 4 5 6 7 8 9 10 | infile <- system.file("extdata", "example_multiple_segments.dwt", package = "scbursts")
dwells <- dwt.read(infile)
# Still a list, but the meta-data is fixed
spaced_records <- bursts.space_out(dwells, sep_factor=1000)
# Combine them, and they'll be nicely spaced out.
single_record <- bursts.recombine(spaced_records)
# You can now plot that single_record using one of the plot functions.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.