Learn R Programming

ABCanalysis (version 1.1.2)

ABCanalysisPlot: Displays ABC plot with ABCanalysis

Description

Displays ABC Curve : cumulative percentage of largest Data (effort) vs cumlative percentage of sum of largest data (yield) with set limits generated by an calculated ABCanalysis.

Usage

ABCanalysisPlot(Data, LineType = 0, LineWidth = 3, ShowUniform = TRUE,title, limits = TRUE, MarkPoints = TRUE, ABCcurvedata,ResetPlotDefaults=TRUE)

Arguments

Data
vector[1:n] describes an array of data: n cases in rows of one variable
LineType
integer, optional, for plot default: LineType=0 for solid line; for other line codes see documentation about pch
LineWidth
integer, optional, width of Line, see lwd in par
ShowUniform
boolean, optional, the ABC curve of the uniform distribution is shown in plot if TRUE (default)
title
string, optional, see parameter main in plot
limits
boolean, = TRUE, lines of division in A, B and C are drawn, default = FALSE
MarkPoints
boolean, optional, default= TRUE, Mark the three points of interest
ABCcurvedata
optional, see ABCcurve
ResetPlotDefaults
optional, default =TRUE. If ResetPlotDefaults=FALSE, multiple plots in one window possible, but no resetting of plot to default parameters.

Value

object is a list of items with

See Also

ABCanalysis

Examples

Run this code
## Standard Example
	data("SwissInhabitants")
	abc=ABCanalysisPlot(SwissInhabitants)
##	Multiple plots in one Window:
	m=runif(4,100,200)
	s=runif(4,1,10)
	Data=sapply(1:4,FUN=function(x,m,s) rnorm(1000,m,s),m,s)
	# windows() #screen devices should not be used in examples etc
	par(mfrow=c(2,2))
	for (i in 1:4)
	{
		ABCanalysisPlot(Data[,i],ResetPlotDefaults=FALSE)
	}

Run the code above in your browser using DataLab