This function is the plot method for an object of class
fHMM_model.
Usage
# S3 method for class 'fHMM_model'
plot(
x,
plot_type = "ts",
events = NULL,
colors = NULL,
ll_relative = TRUE,
title = NULL,
from = NULL,
to = NULL,
...
)Arguments
- x
An object of class
fHMM_model.- plot_type
A character (vector), specifying the type of plot and can be one (or more) of
"ll"for a visualization of the likelihood values in the different optimization runs,"sdds"for a visualization of the estimated state-dependent distributions,"pr"for a visualization of the model's (pseudo-) residuals,"ts"for a visualization of the financial time series.
- events
An object of class
fHMM_events.- colors
Either
NULL(default) or acharactervector of color names or hexadecimal RGB triplets.- ll_relative
A
logical, set toTRUE(default) to plot the differences from the best log-likelihood value. Set toFALSEto plot the absolute values.- title
Optionally a
characterfor a custom title.- from
Optionally a
character, a date in format"YYYY-MM-DD", setting the lower date bound for plotting. By default,from = NULL, i.e. no lower bound.- to
Optionally a
character, a date in format"YYYY-MM-DD", setting the upper date bound for plotting. By default,to = NULL, i.e. no upper bound.- ...
Currently not used.
