Learn R Programming

praatpicture

If you’ve ever had to fiddle around with getting a Praat Picture to look and export just right in order to insert it in an R markdown file or slide deck, then this package is for you! Even if this isn’t the case, the package offers some very useful flexibility. It’s a simple set of functions designed to emulate some common plots made in Praat Picture with base R plotting. It allows for flexibly combining waveforms, spectrograms, TextGrids, pitch tracks, formant tracks, and intensity tracks in a single plot. The derived acoustic plots can all be generated directly in R, or (except in the case of spectrograms) generated in Praat.

TextGrids can be plotted as long as there is a file with the .TextGrid extension in the same directory and with the same base name as the sound file. If there are files with the .PitchTier, .Formant, and .IntensityTier extensions generated in Praat, these are loaded in using the rPraat package and used for plotting. Otherwise, signal processing functions from the wrassp package are used in a way that emulates Praat default settings as closely as possible. Spectrograms are generated with the phonTools package.

If you are an emuR user, the emupicture function will help make Praat Picture style plots of sound files, annotations, and possibly SSFF files from an EMU-database.

For more information on how to use the package, see the manual.

If you run into bugs or have suggested changes, please let me know!

Installation

praatpicture is on CRAN and can be installed in the usual way:

install.packages('praatpicture')

You can install the latest development version of praatpicture like so:

#install.packages('devtools')
devtools::install_github('rpuggaardrode/praatpicture')

New features will be available from Github before they are available on CRAN.

Copy Link

Version

Install

install.packages('praatpicture')

Monthly Downloads

273

Version

1.4.3

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Rasmus Puggaard-Rode

Last Published

May 13th, 2025

Functions in praatpicture (1.4.3)

make_annot

Annotate praatpicture plot component
intensityplot

Plot intensity object
tg_createTier

Interactively create a TextGrid tier
draw_arrow

Draw arrow on praatpicture plot component
waveplot

Plot waveform
tg_stylize

Convert Praat font styles to R font styles
tgplot

Plot TextGrid
make_TextGrid

Interactively create a TextGrid object
praat_pitchRawAC

Estimate pitch using Praat's raw autocorrelation function
praatanimation

Make animations from Praat Picture-style plots of acoustic data
specplot

Plot spectrogram
talking_praatpicture

Make Praat Picture style plots of acoustic data with embedded audio
praatpicture

Make Praat Picture style plots of acoustic data
emupicture

Make Praat Picture style plots in EMU
formantplot

Plot formant object
shiny_praatpicture

Run praatpicture as Shiny app
conv2sc

Convert capital letters to Unicode small caps
draw_lines

Draw straight lines on plot component
pitchplot

Plot pitch object
draw_rectangle

Draw rectangle on praatpicture plot component