Description Usage Arguments Examples
plot creates plots for optiPlusModel class according to the specified type
1 | plot.optiPlusModel(x, type, digits = 2, color = "#4d88ff")
|
x |
|
type |
|
digits |
|
color |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(mtcars)
#Creation of cross-validation column :
cv <- createCv(mtcars, columName = "cyl")
#Data
y <- "mpg"
ycolumnindex <- names(mtcars) == "mpg"
x <- mtcars[, !ycolumnindex]
y <- mtcars[, ycolumnindex]
mod <- rfMod(x = x, y = y, cvcol = cv,
ntree= c(50, 100), mtry = c(3,4),
nodesize = c(3, 4, 5), criterion = "RMSE")
plot(mod, type = "obsPred", digits = 3, color = "#00b300")
plot(mod, type = "importance", color = "#00b300")
plot(mod, type = "decileProb")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.