barwithucl: barwithucl

Description Usage Arguments Value Examples

View source: R/barwithucl.R

Description

Single bar plot with Upper Control Limis. Customized title and labels. Y-Axis limits are fixed according to the range of the values in x.

Usage

1
2
3
4
5
6
7
8
barwithucl(
  x,
  iobs,
  ucl,
  plotname = "",
  ylabelname = "",
  xlabelname = "Obs. Index"
)

Arguments

x

vector with the values of the statistic.

iobs

index of the observations whose value will be displayed.

ucl

Upper Control Limit of the statistic.

plotname

string with the title of the plot. Set to "" by default.

ylabelname

string with the y-axis label. Set to "" by default.

xlabelname

string with the y-axis label. Set to "Obs. Index" by default.

Value

ggplot object with the individual value of a variable as a geom_col with an horizontal line reference.

Examples

1
2
3
barwithucl(c(1:10), 6, 5)
barwithucl(c(1:10), 6, 5, plotname = "Plot title", ylabelname = "Y label", 
xlabelname= "X label")

SCOUTer documentation built on July 1, 2020, 6:27 p.m.