Guide to the rhythm_metrics R package for calculating and plotting speech rhythm metrics such as Delta C, Varco C, %V, rPVI C and nPVI V.
This guide describes the rhythm_metrics R package, which provides functions for calculating speech rhythm metrics and plotting the results. It lists the calculation functions delta_cv, varco_cv, percentage_v, rpvi_c and npvi_v, and the plotting functions plot_delta_cv, plot_varco_cv, plot_percentage_v, plot_rpvi and plot_npvi.
The guide explains installation from GitHub using devtools, loading the package with library(rhythm.metrics), and working through examples using a sample dataframe. Each example gives the metric definition, the function call, sample output and a plotting call.
| Package type | R package |
|---|---|
| Calculation functions | delta_cv, varco_cv, percentage_v, rpvi_c, npvi_v |
| Plotting functions | plot_delta_cv, plot_varco_cv, plot_percentage_v, plot_rpvi, plot_npvi |
| Installation source | GitHub repository congzhang365/rhythm.metrics |
Install the devtools package, then run devtools::install_github("congzhang365/rhythm.metrics").
The calculation functions are delta_cv, varco_cv, percentage_v, rpvi_c and npvi_v.
%V calculates the ratio of vocalic material to the total duration of an utterance.
Delta C is the standard deviation of total consonant duration, and Delta V is the standard deviation of total vowel duration.