get_hlines {expirest} | R Documentation |
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)
Arguments
model |
An ‘ |
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.
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).
See Also
plot_expirest_osle
, plot_expirest_wisle
,
ggplot
, geom_text
.