Plot method for deep conditional transformation models
# S3 method for deeptrafo
plot(
x,
which = NULL,
type = c("smooth", "trafo", "pdf", "cdf"),
newdata = NULL,
which_param = c("shifting", "interacting"),
only_data = FALSE,
K = 40,
q = NULL,
...
)
Object of class "deeptrafo"
.
Which effect to plot, default selects all smooth effects in the shift term.
Character; One of "smooth", "trafo", "pdf", or "cdf".
Optional new data (list
or data.frame
) to
evaluate predictions at. If the response is missing, plots are generated
on a grid of length K
Character; either "interacting"
or "shifting"
.
Logical, if TRUE
, only the data for plotting is returned.
Integer; If type == "smooth"
the length of an equidistant
grid at which a two-dimensional function is evaluated for plotting.
Otherwise, length of the grid to evaluate predictions at,
see newdata
.
Vector of response values to compute predictions at, see newdata
Further arguments, passed to fit, plot or predict function