Santiago Barreda
Assistant Professor, Department of Linguistics, UC Davis

Main Research Vignettes CV phonTools Statistics Links


phasor [phonTools]


Plot phasors representing one or more complex-valued variables. There are a number of options, including scaled or unscaled phasors, and the inclusion of axes and the unit circle.



Code used to generate examples:

## generate white noise noise = rnorm (30) ## complex-valued variables via the Fourier transform phasors = fft(noise) par (mfrow = c(1,3)) phasor (phasors, scaled = FALSE) phasor (phasors) phasor (phasors, circle = TRUE)