uploadPattern {accrued}R Documentation

Function to create an upload pattern plot

Description

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

Usage

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

	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)				

[Package accrued version 1.4.1 Index]