Visualizes response-, prediction-, partial dependence, and/or ALE profiles
of a (multi-)flashlight with respect to a covariable v
.
Different flashlights or a single flashlight with one "by" variable are separated
by a facet wrap.
An object of class "light_effects".
A vector of elements to show. Any subset of ("response", "predicted", "pd", "ale") or "all". Defaults to all except "ale"
Logical flag if 0 count levels should be shown on the x axis.
Factor used to enlarge default size/linewidth
in
ggplot2::geom_point()
and ggplot2::geom_line()
.
Scales argument passed to ggplot2::facet_wrap()
.
Number of rows in ggplot2::facet_wrap()
.
Should x axis labels be rotated by 45 degrees?
Should points be added to the line (default is TRUE
).
Named vector of curve labels. The names refer to the usual labels, while the values are the desired labels, e.g., `c("partial dependence" = PDP", "ale" = "ALE").
Further arguments passed to geoms.
An object of class "ggplot".