tg_stylize {praatpicture} | R Documentation |
Convert Praat font styles to R font styles
Description
Helper function for converting Praat font styles such as italics, bold,
and small caps into expressions that can be read by base R plots.
Instead of using
this function directly, just use
praatpicture('my_sound_file', frames='TextGrid', tg_specialChar=TRUE)
.
Usage
tg_stylize(lab)
Arguments
lab |
A string or vector of strings with labels from a TextGrid. |
Value
A list with elements of class expression
.
Examples
# Don't use directly
datapath <- system.file('extdata', package='praatpicture')
soundFile <- paste0(datapath, '/1.wav')
# With stylized text
praatpicture(soundFile, frames='TextGrid')
# Without stylized text
praatpicture(soundFile, frames='TextGrid', tg_specialChar=FALSE)
[Package praatpicture version 1.2.0 Index]