plot.interv_fit: Plotting a interv_fit object

Description Usage Arguments Examples

View source: R/mlintervals.R

Description

Plots the interpolating curve along the interval data. By default, also plots confidence bands

Usage

1
2
3
4
## S3 method for class 'interv_fit'
plot(x, ..., from = NULL, to = NULL,
  points = 300, plot_bands = TRUE, sigma2 = NULL, col_means = 1,
  col_line = 4, col_bands = rgb(0, 0, 1, 0.25))

Arguments

x

an object of class interv_fit

...

any graphical parameter to be used for plotting

from, to

limits of the plotting window of time. By default, it plots the window corresponding to first 20 time intervals, or the whole series if it is shorter. A warning will be raised if a part of the series is omitted. By setting these parameters, it is possible to plot a window of any lenght, but windows too wide will make the graph too dense

points

integer, the number of points in which to evaluate the curve

plot_bands

logical; if TRUE, confidence bands are plotted. Default is TRUE

sigma2

it is possible to fix scale parameter for confidence bands. If sigma2 is fixed, then normal quantiles are used; if is not, t quantiles are used

col_means

color for interval observed integrals

col_line

color for interpolating curve

col_bands

color for the region inside confidence bands. Default uses transparency

Examples

1
2
3
M= c(0, 1, -1, 2, 4)
mod= interv_fit(M)
plot(mod)

c-foschi/mlintervals documentation built on July 1, 2020, 1:25 a.m.