Description Usage Arguments Examples
View source: R/plot.spectrum.test.R
This function generates a dual plot showing the results of the permutation-spectrum testusing either ggplot
or base
graphics.
The user must input a test object produced by the spectrum.test
function. The function produces a dual plot showing the scaled intensity
of the time-series vector and the simulated null distribution of the maximum scaled intensity under the null hypothesis of an IID vector.
The plots also report the value of the maximum scaled intensity and the resulting p-value for the test. This dual plot forms a useful
companion to the permutation-spectrum test; it allows the user to visualise the simulated null distribution and test statistic.
1 2 |
x |
A |
ggplot |
Logical; if |
print |
Logical; if |
... |
unused |
1 2 3 4 5 | data(garma)
#Show the intensity of a time-series vector
TEST <- spectrum.test(SERIES1, sims = 100)
plot(TEST)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.