uploadPattern: Function to create an upload pattern plot

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

View source: R/uploadPattern.R

Description

Creates an upload pattern plot for partially accruing data showing dates at which new data were received for each encounter date.

Usage

1
uploadPattern(x, horizontal = FALSE, ...)

Arguments

x

An object of the accrued class.

horizontal

logical value; if TRUE a compact horizontal plot is generated, if FALSE a diagonal upload plot is generated.

...

Parameters to pass to plot.

Details

A diagonal upload pattern plot displays for each encounter date (x-axis) whether or not new data was received at each upload date (y-axis). A horizontal upload pattern plot displays for each encounter date (x-axis) whether or not new data were received y days after the encounter date. Note that this function calls the "stackedUploadData" which should only be used on count data. If data were received containing 0 or negative counts, pixels are colored in gray. Otherwise they are dark blue.

Value

None.

Author(s)

Julie Eaton and Ian Painter

See Also

stackedUploadData, barcode, plot.accrued, plot.summary.accrued, lagHistogram

Examples

1
2
3
4
5
	data(accruedDataExample)			
	testData <- data.accrued(accruedDataExample)	
	uploadPattern(testData)					# Diagonal plot (default)
	dev.new(height = 1.5, width = 10)		# Horizontal plot - best short and wide
	uploadPattern(testData, horizontal = TRUE)				

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