Learn R Programming

phonR (version 0.3-0)

plotVowels: Plot F1 and F2 values from separate vectors or from a data frame

Description

Generates high-quality plots of provided formant values using either the default onscreen device (X11, Quartz, or Win32) or direct-to-file using R base graphics functions (PDF, SVG, JPG, PNG, TIFF, or BMP). Can also normalize values on-the-fly before plotting, through a call to normalizeVowels.

Usage

plotVowels(vowel, f1, f2, f3=NULL, f0=NULL, grouping.factor=NULL, 
data=NULL, norm.method='none', match.unit=TRUE, 
match.axes='absolute', points='text', means='text', 
points.alpha=0.5, means.alpha=1, points.cex=0.6, means.cex=1.2, 
ignore.hidden=TRUE, ellipses=TRUE, ellipse.alpha=0.3173, 
polygon=TRUE, poly.order=NULL, poly.include=NULL, 
single.plot=TRUE, axis.col='#666666FF', titles='auto', 
axis.titles='auto', font.size=12, font.family='', 
grayscale=FALSE, vary.shapes=grayscale, vary.lines=grayscale, 
uniform.style=!single.plot, legend=single.plot, aspect.ratio=NULL, 
plot.dims=c(6.5,6.5), plot.unit='in', dpi=NULL, output='screen')

Arguments

References

McCloy, D. R. 2012 Normalizing and plotting vowels with the phonR package. Technical Reports of the UW Linguistic Phonetics Laboratory. http://depts.washington.edu/phonlab/pubs/McCloy2012_phonR.pdf

See Also

normalizeVowels

Examples

Run this code
data(indoVowelData)
	plotVowels(vowel=indo$vowel, f1=indo$f1, f2=indo$f2, grouping.factor=
	           indo$gender, norm.method='bark', match.unit=FALSE)
	plotVowels(data=indo, vowel='vowel', f1='f1', f2='f2', grouping.factor=
	           'subj', single.plot=FALSE, match.axes='relative', points='shape')

Run the code above in your browser using DataLab