barwithucl {SCOUTer}R Documentation

barwithucl

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

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

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

[Package SCOUTer version 1.0.0 Index]