"plot"(x, metric = x$metric, ...)
"ggplot"(data = NULL, mapping = NULL, metric = data$metric[1], output = "layered", ..., environment = NULL)
rfe
.
plot
only: specifications to be passed to xyplot
. The function automatically sets some arguments (e.g. axis labels) but passing in values here will over-ride the defaults.
rfe
.
ggplot
object with no layers. The third value returns a plot with a set of layers. rfe
, xyplot
, ggplot
## Not run:
# data(BloodBrain)
#
# x <- scale(bbbDescr[,-nearZeroVar(bbbDescr)])
# x <- x[, -findCorrelation(cor(x), .8)]
# x <- as.data.frame(x)
#
# set.seed(1)
# lmProfile <- rfe(x, logBBB,
# sizes = c(2:25, 30, 35, 40, 45, 50, 55, 60, 65),
# rfeControl = rfeControl(functions = lmFuncs,
# number = 200))
# plot(lmProfile)
# plot(lmProfile, metric = "Rsquared")
# ggplot(lmProfile)
# ## End(Not run)
Run the code above in your browser using DataLab