Description Usage Arguments Value See Also Examples

Plotting of `dice`

objects.

1 2 3 4 5 |

`x` |
Object of class |

`plot_margin` |
Extra margin to pass to |

`frac_to_plot` |
If |

`plot_sd` |
If |

`plot_orig_pts_deriv` |
If |

`pts_preds_size` |
Size of points to make if |

`colorvec` |
Optional vector of colors to use for each curve. |

`color_by` |
Optional variable name (or column number) in |

`x_quantile` |
If |

`plot_dpdp` |
If |

`rug_quantile` |
If not null, tick marks are drawn on the x-axis corresponding to the vector of quantiles specified by this parameter.
Forced to |

`...` |
Additional plotting arguments. |

A list with the following elements.

`plot_points_indices` |
Row numbers of |

`legend_text` |
If the |

dice

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ```
## Not run:
require(ICEbox)
require(randomForest)
require(MASS) #has Boston Housing data, Pima
data(Boston) #Boston Housing data
X = Boston
y = X$medv
X$medv = NULL
## build a RF:
bhd_rf_mod = randomForest(X, y)
## Create an 'ice' object for the predictor "age":
bhd.ice = ice(object = bhd_rf_mod, X = X, y = y, predictor = "age", frac_to_build = .1)
# estimate derivatives, then plot.
bhd.dice = dice(bhd.ice)
plot(bhd.dice)
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.