Learn R Programming

DBEST (version 1.8)

plot.DBEST: Methods for objects of class "DBEST".

Description

Plot methods for objects of class "DBEST".

Usage


# S3 method for DBEST
plot(x, figure = 1, ...)

Arguments

x

DBEST object.

figure

If omitted, the plot function displays 'figure 1' and 'figure 2'. If this option is set to 1, the plot function will display the input data and the estimated trend, plus the trend local change (figure 1). If this option is set to 2, the plot function will display a graph with the decomposition of the time-series, including the actual data, the trend, the seasonal component and the remainder.

...

further arguments passed to the plot function.

See Also

See also as DBEST

Examples

Run this code
# NOT RUN {
# Display figure 1 - the input data and the estimated trend, plus the trend local change.
plot(DBEST.obj, figure=1)

# Display figure 2 - the decomposition of the time-series, including the actual data, 
# the trend, the seasonal component and the remainder.
plot(DBEST.obj, figure=2)

# }

Run the code above in your browser using DataLab