gplot.mtm: Plot results from 'spec.mtm'

Description Usage Arguments Value Examples

View source: R/mtm_plots.R

Description

Attractive ggplot2 plot of spec.mtm output

Usage

1
2
gplot.mtm(mspec, jack = FALSE, period = F, trans = c("identity",
  "log10", "sqrt"))

Arguments

mspec

spec.mtm output

jack

include jackknife confidence intervals if TRUE. These are computed by spec.mtm only if "jackknife = TRUE". The confidence level defaults to 95 with the jkCIProb argument.

period

display spectrum against period, rather than frequency, if TRUE

trans

apply a transform to the spectral power; defaults to no transform

Value

a ggplot2 object

Examples

1
2
3
s <- ts( sin( 2 * pi * 1:512 / 32 ) + rnorm( 512, sd = 0.25 ), deltat = 1 )
mspec <- spec.mtm( s, jackknife = TRUE, plot = FALSE )
mtm.plot( mspec, jack = TRUE, period = TRUE, trans = "log10" )

jrevenaugh/TSAUMN documentation built on Nov. 8, 2019, 2:20 p.m.