Learn R Programming

radiant.model (version 1.6.12)

autoplot.partial: Plot a partial dependence object

Description

ggplot2::autoplot method for objects of class "partial" as returned by pdp_partial.

Usage

# S3 method for partial
autoplot(object, rug = FALSE, train = NULL, ...)

Value

A ggplot object.

Arguments

object

A data frame with class "partial".

rug

Logical; add quantile rug marks on the x-axis.

train

Training data used for rug marks (required when rug = TRUE).

...

Additional arguments passed to geom_line or geom_point.