plot.accruedErrors: Function to plot errors in accrued data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plot.accruedErrors.R

Description

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

Usage

1
2
3
## 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.

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.

Value

None.

Author(s)

Julie Eaton and Ian Painter

See Also

accruedErrors, data.accrued, summary.accruedErrors

Examples

1
2
3
4
	data(accruedDataExample)			# simulated accrued data
	dat <- data.accrued(accruedDataExample)	
	errors <- accruedErrors(dat)
	plot(errors)

accrued documentation built on May 30, 2017, 8:14 a.m.

Search within the accrued package
Search all R packages, documentation and source code