Description Usage Arguments Value Side Effects See Also Examples
View source: R/meanvar.rpart.R
Creates a plot on the current graphics device of the deviance of the node divided by the number of observations at the node. Also returns the node number.
1 2 3 4 |
tree |
fitted model object of class |
xlab |
x-axis label for the plot. |
ylab |
y-axis label for the plot. |
... |
additional graphical parameters may be supplied as arguments to this function. |
an invisible list containing the following vectors is returned.
x |
fitted value at terminal nodes ( |
y |
deviance of node divided by number of observations at node. |
label |
node number. |
a plot is put on the current graphics device.
1 2 | z.auto <- rpart(Mileage ~ Weight, car.test.frame)
meanvar(z.auto, log = 'xy')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.