get_arrow {expirest} | R Documentation |
Prepare arrow supporting the explanation of graphical elements
Description
The function get_arrows()
prepares a data frame for putting an
arrow on a plot prepared by the ggplot()
function from the
‘ggplot2
’ package.
Usage
get_arrow(model, x_range, rl_index, mtbs = "verified")
Arguments
model |
An ‘ |
x_range |
A numeric vector of the form |
rl_index |
A positive integer that specifies which of the release limit
values that have been handed over to |
mtbs |
A character string that specifies the “model to be shown”,
i.e. either |
Details
The function get_arrows()
expects various pieces
of information that characterises 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 function
plot_expirest_wisle(
)) to put an arrow on the graph that
is prepared by this function.
Value
A data frame with the columns ‘Time.1’, ‘Time.2’, ‘Response.1’, ‘Response.2’, Item, Colour, Line.Type, Arrow.Type, Size, Curvature, Angle and Length is returned, where the column names ‘Time.1’, ‘Time.2’, ‘Response.1’ and ‘Response.2’ are placeholders for the corresponding variable names. The data frame has a single row representing the arrow that is put on the graphical illustration.
See Also
plot_expirest_osle
, plot_expirest_wisle
,
ggplot
, geom_text
.