plot.DBH | R Documentation |
DBH
objectsPlotting method for DBH
objects
## S3 method for class 'DBH'
plot(x, ...)
x |
an object of class |
... |
optional arguments, see details |
The plotting method has the following optional parameters:
pData
A data.table
or an xts
object, containing the prices and timestamps of the data used to calculate the test statistic.
If specified, and which = "tStat"
, the price will be shown on the right y-axis along with the test statistic
which
A string denoting which of four plots to make. "tStat"
denotes plotting the test statistic. "sigma"
denotes plotting the
estimated volatility process. "mu"
denotes plotting the estimated drift process. If which = c("sigma", "mu")
or which = c("mu", "sigma")
,
both the drift and volatility processes are plotted. CaPiTAlizAtIOn doesn't matter
Emil Sjoerup
# Testing every 60 seconds after 09:15:00
DBH <- driftBursts(sampleTDataEurope, testTimes = seq(32400 + 900, 63000, 60), preAverage = 2,
ACLag = -1L, meanBandwidth = 300L, varianceBandwidth = 900L)
plot(DBH)
plot(DBH, pData = sampleTDataEurope)
plot(DBH, which = "sigma")
plot(DBH, which = "mu")
plot(DBH, which = c("sigma", "mu"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.