Learn R Programming

accrued (version 1.2)

barcode: Function to create a barcode plot of partially accrued data

Description

Function to create a simple barcode sparkline graph for partially accrued data showing dates on which counts are received. If data were received containing 0 or negative counts, bars are colored in gray. Otherwise they are dark blue.

Usage

barcode(x, ...)

Arguments

x
Object of the accrued class containing data to be plotted.
...
Parameters to pass to plot.

Value

  • None.

Details

A plot is produced showing days on which data were received. Note that this function calls the stackedUploadData which should only be used on count data.

See Also

data.accrued, stackedUploadData, uploadPattern, plot.accrued, plot.summary.accrued, lagHistogram

Examples

Run this code
data(accruedDataExample)	# simulated accrued data
	dat <- data.accrued(accruedDataExample)	
	barcode(dat)

Run the code above in your browser using DataLab