Description Usage Arguments Examples
plot.tuts_ls
plots spectra of tuts_ls objects.
1 2 |
x |
A tuts_ls obect. |
... |
optional arguments are not in use in the current version on tuts. |
1 2 3 4 5 6 7 8 9 10 11 12 | #1. Import or simulate the data (simulation is chosen for illustrative purposes):
DATA=simtuts(N=10,Harmonics=c(4,0,0), sin.ampl=c(10,0, 0), cos.ampl=c(0,0,0),
trend=0,y.sd=2, ti.sd=0.2)
y=DATA$observed$y.obs
ti.mu=DATA$observed$ti.obs.tnorm
ti.sd= rep(0.2, length(ti.mu))
#2. Run multiple Lomb-Scargle periodograms (optional parameters are listed in brackets):
TULS=tuls(y=y,ti.mu=ti.mu,ti.sd=ti.sd,n.sim=500) # (ofac, CI).
#3. Plot the Lomb-Scargle periodograms:
plot(TULS)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.