Learn R Programming

accrued (version 1.2)

plot.accruedErrors: Function to plot errors in accrued data

Description

Plots errors in accrued data, optionally with quantiles of those errors superimposed.

Usage

## S3 method for class 'accruedErrors':
plot(x, withSmoothing = FALSE, quantiles = c(0.1, 0.5, 0.9), 
  quantileColors = switch(1+is.null(quantiles), rainbow(length(quantiles)), NULL), ...)

Arguments

x
Object of the accruedErrors class.
withSmoothing
Logical. If TRUE the the quantiles are smoothed prior to plotting.
quantiles
A vector of quantiles to be plotted.
quantileColors
Colors to use for quantiles.
...
Parameters to pass to plot.

Value

  • None.

Details

Produces a scatter plot of errors for each lag value, with the $x$-axis representing lag and the $y$-axis the error values. The $x$-value are jittered prior to plotting. If quantiles is specified, the corresponding quantiles of the errors will be superimposed on the plot.

See Also

accruedErrors, data.accrued, summary.accruedErrors

Examples

Run this code
data(accruedDataExample)			# simulated accrued data
	dat <- data.accrued(accruedDataExample)	
	errors <- accruedErrors(dat)
	plot(errors)

Run the code above in your browser using DataLab