rhythm_metrics R Package User Guide

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.


rhythm_metrics R Package User Guide - cover page
Brand
rhythm_metrics
Category
Other software
Document type
User Manual
Language
English
Pages
8
File format
PDF
File size
53 KB
Published
10 November, 2026
Updated
10 November, 2026
MD5 checksum
1719F352C54F9B3A1A771430B08A5523

About this manual

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.

What's inside

  • List of Functions
  • Calculations
  • Plotting
  • Installation
  • Import packages
  • Examples
  • Create dataframe
  • delta_cv
  • varco_cv
  • percentage_v

Specifications

Package typeR package
Calculation functionsdelta_cv, varco_cv, percentage_v, rpvi_c, npvi_v
Plotting functionsplot_delta_cv, plot_varco_cv, plot_percentage_v, plot_rpvi, plot_npvi
Installation sourceGitHub repository congzhang365/rhythm.metrics

Frequently asked questions

How do I install the rhythm_metrics package?

Install the devtools package, then run devtools::install_github("congzhang365/rhythm.metrics").

Which functions calculate the rhythm metrics?

The calculation functions are delta_cv, varco_cv, percentage_v, rpvi_c and npvi_v.

What does percentage_v calculate?

%V calculates the ratio of vocalic material to the total duration of an utterance.

What does delta_cv calculate?

Delta C is the standard deviation of total consonant duration, and Delta V is the standard deviation of total vowel duration.

Download PDF (53 KB)