plot.DBH {highfrequency} | R Documentation |
Plotting method for DBH
objects
Description
Plotting method for DBH
objects
Usage
## S3 method for class 'DBH'
plot(x, ...)
Arguments
x |
an object of class |
... |
optional arguments, see details |
Details
The plotting method has the following optional parameters:
pData
Adata.table
or anxts
object, containing the prices and timestamps of the data used to calculate the test statistic. If specified, andwhich = "tStat"
, the price will be shown on the right y-axis along with the test statisticwhich
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. Ifwhich = c("sigma", "mu")
orwhich = c("mu", "sigma")
, both the drift and volatility processes are plotted. CaPiTAlizAtIOn doesn't matter
Author(s)
Emil Sjoerup
Examples
# 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"))
[Package highfrequency version 1.0.1 Index]