Description Usage Arguments Details Value Author(s) See Also Examples
Function plots compared models built with growthModelComp
and survModelComp
. This can be invoked directly from growthModelComp
and survModelComp
with the argument makePlot = TRUE
.
1 2 3 4 5 6 7 | plotGrowthModelComp(grObj,summaryTable, dataf, expVars,
testType = "AIC",
plotLegend = TRUE, mainTitle = "", legendPos = "topright",...)
plotSurvModelComp(svObj, summaryTable, dataf, expVars,
testType = "AIC", plotLegend = TRUE, mainTitle = "",ncuts=20,
legendPos = "bottomleft",...)
|
grObj |
a list with the objects of the class growth object equal to |
svObj |
a list with the objects of the class survival object equal to |
summaryTable |
dataframe output from |
dataf |
dataframe containing |
expVars |
vector, list of covariates. Defaults to |
testType |
character string identifying the metric used to compare models. Can be any string that uses |
plotLegend |
logical indicated whether a legend is created. If |
mainTitle |
string to place as the |
ncuts |
number of consecutive size values for which to take means of size and survival for plotting. |
legendPos |
position of the legend on the figure ("topright", "bottomleft", ...) |
... |
additional arguments to plot (ylim, col, etc) |
Plots multiple growth and survival objects returned from growthModelComp
and survModelComp
. See plotGrowthModelComp
and plotSurvModelComp
for more details.
a plot object.
C. Jessica E. Metcalf, Sean M. McMahon, Roberto Salguero-Gomez, Eelke Jongejans & Cory Merow.
growthModelComp
,growthModelComp
1 2 3 4 | # Data with size and sizeNext
dff <- generateData()
grModels <- growthModelComp(dff, makePlot = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.