Generate response surface plots for a given interaction.
1 2 3 4 5 | plotInt(x, y, int, read.forest, varnames = NULL, qcut = 0.5,
col.pal = c("#1c3f66", "#306aab", "#6e96c4", "#ffb003", "#ff8300"),
xlab = NULL, ylab = NULL, zlab = NULL, range.col = NULL,
z.range = c(0, 1), grid.size = 50, min.surface = 100, min.nd = 5,
pred.prob = FALSE, filt.rule = TRUE, nc = 2, main = NULL)
|
x |
numeric feature matrix, with replicate features grouped |
y |
response vector |
int |
signed interaction to plot. Formatted as 'X1+_X2+_X3-_...' |
read.forest |
output of readForest |
varnames |
character vector indicating feature names. If NULL, colnames(x) are used as feature names. |
col.pal |
color palette for response surfaces |
xlab |
x-axis label |
ylab |
y-axis label |
zlab |
z-axis label |
range.col |
range of response values for color palette |
z.range |
z-axiz range |
min.surface |
minimum number of observations required to generate a response surface. |
min.nd |
minimum leaf node size to extract decision rules from. |
main |
plot title for response surfaces |
qcut: |
quantile to define low/high levels of additional features beyond order-2 interations. Thresholds will generated using the specified quantile of random forest thresholds for corresponding features. |
grid.surface |
size of grid to generate response surfaces over. |
pred.prob: |
if TRUE, z-axis indicates predicted probability from the random forest. If false, z-axis indicates distribution of responses y |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.