Plot two-way interactions from gbm model
Usage
plot2Way(
dw_model,
variable = c("ws", "air_temp"),
res = 100,
exclude = TRUE,
cols = "default",
dist = 0.05,
plot = TRUE,
...
)
Arguments
- dw_model
Model object from running
buildMod()
.- variable
The variables to plot. Must be of length two e.g.
variables = c("ws", "wd"
.- res
Resolution in x-y i.e. number of points in each dimension.
- exclude
Should surfaces exclude predictions too far from original data? The default is
TRUE
.- cols
Colours to be used for plotting. Options include “default”, “increment”, “heat”, “jet” and user defined. For user defined the user can supply a list of colour names recognised by R (type
colours()
to see the full list). An example would becols = c("yellow", "green", "blue")
- dist
When plotting surfaces,
dist
controls how far from the original data the predictions should be made. Seeexclude.too.far
from themgcv
package. Data are first transformed to a unit square. Values should be between 0 and 1.- plot
Should a plot be produced?
FALSE
can be useful when analysing data to extract plot components and plotting them in other ways.- ...
Other arguments to be passed for plotting.
See also
Other deweather model plotting functions:
plotInfluence()
,
plotPD()