View source: R/ALEPlots_methods.R
customize | R Documentation |
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
)
plots_obj |
ALEPlots object to customize. |
x_cols , exclude_cols |
See documentation for |
... |
not used. Inserted to require explicit naming of subsequent arguments. |
type |
See documentation for |
cats |
See documentation for |
layers |
List of |
zoom_x , zoom_y |
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 |
An ALEPlots
object where elements specified by x_cols and exclude_cols are modified accordingly. Non-specified elements are not modified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.