qcc.options: Set or return options for the 'qcc' package.

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

Description

This function can be used to control the behavior of the 'qcc' library such as the background color, out-of-control points appearance, and many others.

Usage

1

Arguments

...

the option to be set or retrieved. See details.

Details

The available options are:

exp.R.unscaled

a vector specifying, for each sample size, the expected value of the relative range (i.e. R/σ) for a normal distribution. This appears as d_2 on most tables containing factors for the construction of control charts.

se.R.unscaled

a vector specifying, for each sample size, the standard error of the relative range (i.e. R/σ) for a normal distribution. This appears as d_3 on most tables containing factors for the construction of control charts.

beyond.limits$pch

plotting character used to highlight points beyond control limits.

beyond.limits$col

color used to highlight points beyond control limits.

violating.runs$pch

plotting character used to highlight points violating runs.

violating.runs$col

color used to highlight points violating runs.

run.length

the maximum value of a run before to signal a point as out of control.

bg.margin

background color used to draw the margin of the charts.

bg.figure

background color used to draw the figure of the charts.

cex

character expansion used to draw plot annotations (labels, title, tickmarks, etc.).

font.stats

font used to draw text at the bottom of control charts.

cex.stats

character expansion used to draw text at the bottom of control charts.

Value

If the functions is called with no argument return a list of available options.

If an option argument is provided the corresponding value is returned.

If a value is associated with an option argument, such option is set and the list of updated option values is invisibly returned. In this case the list .qcc.options is modified and any modification will remain in effect for the rest of the session.

Author(s)

Luca Scrucca

See Also

qcc

Examples

1
2
3
4
5
6
7
8
old <- qcc.options()			# save defaults
qcc.options("cex.stats")		# get a single parameter
qcc.options("cex.stats"=1.2)	# change parameters
qcc.options(bg.margin="azure2")
qcc.options("violating.runs" = list(pch = 15, col = "purple"))
qcc.options("beyond.limits" = list(pch = 15, col = "orangered"))
qcc(rnorm(100), type = "xbar.one", std.dev = 0.7)	# see the results
qcc.options(old)				# restore old defaults 

Example output

Package 'qcc' version 2.7
Type 'citation("qcc")' for citing this R package in publications.
[1] 0.9
List of 11
 $ call      : language qcc(data = rnorm(100), type = "xbar.one", std.dev = 0.7)
 $ type      : chr "xbar.one"
 $ data.name : chr "rnorm(100)"
 $ data      : num [1:100, 1] 0.445 -1.154 -0.271 0.521 -0.279 ...
  ..- attr(*, "dimnames")=List of 2
 $ statistics: Named num [1:100] 0.445 -1.154 -0.271 0.521 -0.279 ...
  ..- attr(*, "names")= chr [1:100] "1" "2" "3" "4" ...
 $ sizes     : int [1:100] 1 1 1 1 1 1 1 1 1 1 ...
 $ center    : num -0.055
 $ std.dev   : num 0.7
 $ nsigmas   : num 3
 $ limits    : num [1, 1:2] -2.15 2.05
  ..- attr(*, "dimnames")=List of 2
 $ violations:List of 2
 - attr(*, "class")= chr "qcc"

qcc documentation built on May 2, 2019, 9:15 a.m.