[R] display recursive partitioning tree as a treemap?

Michael Friendly friendly at yorku.ca
Tue Sep 24 19:53:13 CEST 2013


The rpart and party packages, among others, calculate recursive 
partitioning trees
for regression and classification.  There are plot methods available for 
showing
various features as, well,  trees.

But trees can be displayed more compactly as treemaps, eg with the 
treemap packge,
giving a recursive partitioning of a unit rectangle.
I'm wondering if anyone has tried to map the output from rpart() or 
party::ctree() into
the form required as input for a treemap in R.

-Michael

-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Quantitative Methods
York University      Voice: 416 736-2100 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA



More information about the R-help mailing list