powered by
Plot phasors representing one or more complex-valued variables.
phasor (num, scaled = TRUE, add = FALSE, circle = FALSE, xlim, ylim, ...)
A complex-valued variable to be plotted as a phasor, or a vector of such variables.
If TRUE, phasor magnitudes are scaled to 1.
If TRUE, phasors are plotted on existing figure. If FALSE, a new plot is created.
If TRUE and scaled is TRUE, the unit circle is drawn.
x-axis range.
y-axis range.
Additional arguments are passed to the internal call of 'plot' and 'arrows'.
Santiago Barreda <sbarreda@ucdavis.edu>
Complex-valued variables may be created using the complex() function.
#noise = rnorm (100) #phasors = fft(noise) #par (mfrow = c(1,3)) #phasor (phasors) #phasor (phasors, circle = TRUE) #phasor (phasors, scaled = FALSE)
Run the code above in your browser using DataLab