Vowel Covariation Tools

Tools to support research on vowel covariation. Methods are provided to support Principal Component Analysis workflows (as in Brand et al. (2021) and Wilson Black et al. (2023) ).


nzilbb.vowels: Vowel Covariation Tools nzilbb.vowels website

R-CMD-check DOI CRANstatus

The nzilbb.vowels packages contains useful functions and data for the investigation of vocalic covariation. The core of the package is a set of functions to aid PCA-based studies of monophthongs.

The package evolves along with ongoing research on vocalic covariation carried out at NZILBB.

Installation

Install from CRAN:

install.packages('nzilbb.vowels')

Development version

You can install the development version of nzilbb.vowels from GitHub with:

# install.packages("devtools")
devtools::install_github("nzilbb/nzilbb_vowels")

Example

library(nzilbb.vowels)
#> Loading required package: patchwork
ggplot2::theme_set(ggplot2::theme_bw())

# normalise vowels using Lobanov 2.0 normalisation (see Brand et al. (2021))
onze_vowels <- onze_vowels |> 
  lobanov_2()

# apply PCA to random intercepts from GAMM models (again, from Brand et al. (2021))
onze_pca <- prcomp(
  onze_intercepts |> dplyr::select(-speaker),
  scale = TRUE
)

# Test PCA using bootstrapping approach (see Wilson Black et al. (2022))
onze_pca_test <- pca_test(onze_intercepts |> dplyr::select(-speaker))

# Plot variance explained by each PC.
plot_variance_explained(onze_pca_test)

# Plot index loadings of PC1
plot_loadings(onze_pca_test)

# Plot PC in vowel space
plot_pc_vs(onze_vowels, onze_pca_test)

For more information, see Wilson Black et al. (2022) and associated supplementary material.

RStudio Add-in

It is often useful to have Wells lexical sets in small capitals in R Markdown documents. The way to achieve this manually is to add “vowel”. This package includes an RStudio add in, which can be attached to a keyboard shortcut. (see ‘Addins’ at the top of the RStudio window). This add in works for both Quarto and RMarkdown files.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("nzilbb.vowels")

0.4.3 by Joshua Wilson Black, 10 months ago


https://nzilbb.github.io/nzilbb_vowels/, https://github.com/nzilbb/nzilbb_vowels


Report a bug at https://github.com/nzilbb/nzilbb_vowels/issues


Browse source code at https://github.com/cran/nzilbb.vowels


Authors: Joshua Wilson Black [aut, cre, cph] (ORCID: , James Brand [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, ggplot2, magrittr, rlang, rstudioapi, tibble, tidyr, forcats, glue, purrr, tidyselect, rsample, stringr, ggrepel, smacof, Rdpack, lifecycle

Depends on patchwork

Suggests knitr, rmarkdown, testthat, vdiffr


See at CRAN