lrpTreePlot {longRPart} | R Documentation |
Using the standard rpart plotting function and subfunction rpartco
, this function produces a tree plot with simple line plots at the nodes of the regression coefficients of a mixed effects model.
lrpTreePlot(model,use.n=TRUE,colors=NULL,place='bottomright')
model |
Model produced by longRPart |
use.n |
Boolean indicating whether to include the number of observations at a leaf node in the plot. If F , then the slope of the line is printed instead |
colors |
The desired colors for each node. |
place |
THe placement of the legend |
This function uses the standard plot
and text
commands from rpart and longRPart
, but includes lineplots of the mixed-effects models calculated at each node.
Mohamed Abdolell <mo@dal.ca> and Sam Stewart