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