Transcription of Plotting rpart treeswiththe rpart.plot package
{{id}} {{{paragraph}}}
Plottingrparttrees with MilborrowNovember 23, 2018 Contents1 Introduction22 Quick start23 Main arguments24 Printing rules FAQ96 Customizing the node labels137 Examples using the color and palette arguments188 Branch widths279 Trimming a tree with the mouse2810 Usingplotmoin conjunction withprp2911 Compatibility The graph layout algorithm33An Exampletemp < 68ibh >= 3574dpg < 9ibt < 227temp >= 68ibh < 3574dpg >= 9ibt >= 227n=330 100%n=214 65%n=108 33%n=106 32%n=35 11%n=71 22%n=116 35%n=55 17%n=61 18% IntroductionThe functions in package plotrparttrees [6,7]. The next page shows some examples (Fig-ure1).The workhorse function isprp. It automatically scales and adjusts the displayed tree for best fit.
type = 1 label all nodes (like text.rpart all=TRUE) sex = male age >= 9.5 sibsp >= 3 died died died survived died survived survived yes no type = 2 split labels below node labels sex = male age >= 9.5 sibsp >= 3 died died died survived died survived yes no type = 3 left and right split labels sex = male age >= 9.5 sibsp >= 3 female < 9.5 < 3 ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}