Description Usage Arguments Value References

View source: R/visual_mu_synch.R

Calculates the time-domain synchronization indices CIS, k', k'-1, S, E, SI (detailed below) between two motor unit discharge trains based on a visual determination of peaks in the cumulative sum graph configured from the cross correlation histogram. Function calls dygraphs (allows zooming) to present the normalized cumulative sum. User is prompted to input the left and right boundaries (time points in seconds) of peak seen as a dramatic slope increase in the cumulative sum graph around 0. If no peak is detected, a default +/- 5 ms is used.

Dygraphs package is leveraged in this function to plot the cumulative sum graph in Rstudio's viewer. This allows for interactions within the graph, specifically zoom and unzoom.

1 2 | ```
visual_mu_synch(motor_unit_1, motor_unit_2, order = 1, binwidth =
0.001, get_data = T, plot = F)
``` |

`motor_unit_1, motor_unit_2` |
Numeric vectors of strictly increasing numbers denoting sequential discharge times (in seconds) of a motor unit or neuron or any strictly increasing point process. |

`order` |
Numeric as a positive integer for the number of forward and backward orders for calculating recurrence times. Default = 1. |

`binwidth` |
Numeric as a positive for the bin allocation size for computational histogram. Default = 0.001 sec or 1 ms. |

`get_data` |
T/F logical for outputting motor unit data. Default is TRUE. |

`plot` |
T/F logical for outputting the cross correlation histogram. Default is FALSE. |

A list of lists containing motor unit data (the names of each discharge train used, number of discharges, the interspike intervals (ISI), mean ISI, and the recurrence times associated with each order) and synchronization indices. CIS = frequency of synchronized discharges. k' = ratio of total discharges in peak to expected discharges in peak. k'-1 = ratio of synchronized discharges to expected discharges in peak. S = ratio of synchronized discharges to total number of discharges of both motor units. E = ratio of synchronized discharges to non-synchronized discharges. SI = ratio of synchronized discharges to reference motor unit discharges.

Nordstrom, M.A., Fuglevand, A.J., Enoka, R.M. (1992) Estimating the Strength of Common Input to Human Motoneurons from the Cross-Correlogram. Journal of Physiology 453, pp. 547-574

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.