Description Usage Arguments Value See Also Examples
This figure provides a summary of the covariates used within each level two cluster along with their relative importance. Covariates are listed on the y-axis and level two clusters along the x-axis. Cells that are shaded indicate that that covariate was present in the conditional. The shade of the color represents the highest level within the tree that covariate appeared. That is, the darkest color, or depth 1, corresponds to the covariate used at the root of the tree, or the first split.
1 2 |
x |
the results of |
colNames |
the columns to include in the graphic |
level2Col |
the name of the level 2 column. |
colLabels |
column labels to use. This is a data frame with two columns, the
first column should match the values in |
color.high |
color for variables with less relative importance as determined by occurring later in the tree (further from the root split). |
color.low |
color for variables with greater relative importance as determined by occurring sooner in the tree (closer to the root split). |
color.na |
color for variables that do not occur in the tree. |
... |
currently unused. |
a ggplot2 expression
plot.mlpsa
1 2 3 4 5 6 7 8 9 10 | ## Not run:
require(party)
data(pisana)
data(pisa.colnames)
data(pisa.psa.cols)
mlctree = mlpsa.ctree(pisana[,c('CNT','PUBPRIV',pisa.psa.cols)], formula=PUBPRIV ~ ., level2='CNT')
student.party = getStrata(mlctree, pisana, level2='CNT')
tree.plot(mlctree, level2Col=pisana$CNT)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.