Learn R Programming

SCOUTer (version 1.0.0)

barwithucl: 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

Run this code
# NOT RUN {
barwithucl(c(1:10), 6, 5)
barwithucl(c(1:10), 6, 5, plotname = "Plot title", ylabelname = "Y label", 
xlabelname= "X label")
# }

Run the code above in your browser using DataLab