Learn R Programming

expirest (version 0.1.6)

get_hlines: Prepare horizontal lines

Description

The function get_hlines() prepares a data frame for putting horizontal lines on a plot prepared by the ggplot() function from the ‘ggplot2’ package.

Usage

get_hlines(model)

Value

A data frame with the columns ‘Response’, Item, Colour and Type is returned, where the column name ‘Response’ is a placeholder for the corresponding variable name. The data frame has up to two rows representing the specification limit(s).

Arguments

model

An ‘expirest_osle’ or an ‘expirest_Wisle’ object, i.e. a list returned by the expirest_osle() or by the expirest_wisle() function.

Details

The function get_hlines() expects various pieces of information characterising an ‘expirest_osle’ or an ‘expirest_wisle’ model. Based on the information provided, the function prepares a data frame that that is used by the functions plot_expirest_osle() or plot_expirest_wisle() to put lines on the graph that is prepared by these functions.

See Also

plot_expirest_osle, plot_expirest_wisle, ggplot, geom_text.