plotResp | R Documentation |
Plots the response of a given model over any of the explanatory variables
(EVs) included in that model. For categorical variables, a bar plot is
returned rather than a line plot. Single-effect response curves show the
response of a model containing the explanatory variable of interest only,
while marginal effect response curves show the response of the model when all
other explanatory variables are held constant at their mean values (cf.
plotResp
, plotResp2
).
plotResp(model, transformations, EV, logscale = FALSE, ...)
plotResp2(model, transformations, EV, logscale = FALSE, ...)
model |
The model for which the response is to be plotted, represented
by an object of class 'glm'. This may be the object returned by
|
transformations |
Transformation functions used to create the derived
variables in the model. I.e. the 'transformations' returned by
|
EV |
Character. Name of the explanatory variable for which the response curve is to be plotted. Interaction terms not allowed. |
logscale |
Logical. Plot the common logarithm of PRO rather than PRO itself. |
... |
Arguments to be passed to
|
plotResp()
: Plot single-effect model response.
plotResp2()
: Plot marginal-effect model response.
## Not run:
# From vignette:
plotResp(grasslandmodel, grasslandDVs$transformations, "pr.bygall")
plotResp(grasslandmodel, grasslandDVs$transformations, "geolmja1")
plotResp2(grasslandmodel, grasslandDVs$transformations, "pr.bygall")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.