Plot Marginal and Absolute Rates of Return for Multiple Resource Models
mrm_plot_return.RdThis function generates a plot comparing the Marginal Rate of Return (MR) and Absolute Rate of Return (AR) for multiple resource models. It highlights key points such as the maximum MR and the intersection point where MR equals AR.
Usage
mrm_plot_return(
mrm,
location = "center",
xrange = NULL,
length.out = 1000,
scaled = TRUE,
markup = FALSE
)Arguments
- mrm
A list of fitted model objects (e.g., brmsfit objects).
- location
A character string specifying which location to use for MR and AR calculations. Options are "center", "lower", or "upper". Default is "center".
- xrange
A numeric vector of length 2 specifying the range of x values to consider. If NULL, the range is determined from the data.
- length.out
An integer specifying the number of points to generate for the x-axis. Default is NULL.
- scaled
A logical value indicating whether to use scaled values for the calculations. Default is TRUE.