Customize an ALEPlots object by modifying plots indicated by the combination of x_cols, type, and cats as specified. Some arguments indicate some common customizations such as zooming in or out; see the argument documentation for available simple options.
The most flexible option is to specify a list of ggplot layers with the layers argument; this appends the provided layers to each plot by applying the ggplot2::+.gg() method to them. Thus, any customization supported by appending ggplot layers can be applied. If both layers and simple options like zoom_y are specified, then the layers layers are applied first and then any other option is applied in the order presented in the argument list. For full control over the order of customizations, only provide layers.
See get.ALE() for explanation of parameters not described here.
customize(
plots_obj,
x_cols = NULL,
...,
exclude_cols = NULL,
type = "ale",
cats = NULL,
layers = NULL,
zoom_x = NULL,
zoom_y = NULL
)An ALEPlots object where elements specified by x_cols and exclude_cols are modified accordingly. Non-specified elements are not modified.
ALEPlots object to customize.
See documentation for get.ALE()
not used. Inserted to require explicit naming of subsequent arguments.
See documentation for get.ALE()
See documentation for get.ALE()
List of ggplot layers. These are appended to each plot indicated by the combination of x_cols, type, and cats by applying the ggplot2 + operator to them.
numeric(2). Zoom the specified plots in or out to match the specified x or y limits, respectively. Must be a two-element numeric vector where the first element <= the second. Default NULL does not zoom.