The function get_hlines()
prepares a data frame for putting
horizontal lines on a plot prepared by the ggplot()
function from
the ‘ggplot2
’ package.
get_hlines(model)
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).
An ‘expirest_osle
’ or an
‘expirest_Wisle
’ object, i.e. a list returned
by the expirest_osle()
or by the
expirest_wisle()
function.
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.