Hi all,

I'm trying to create nice plots of rpart objects. In particular, I'd like to use the "fancy" option to text() that creates ellipses and rectangles at the splits and endnotes, respectively. This worked fine in the past, but now the ellipses do not interrupt the original tree lines anymore but overlay them (see attached ps file). I'd like it to look the way Figure 18 on page 49 of the rpart report "An Introduction to Recursive Partitioning Using the RPART Routines" looks and can't figure out why it doesn't.

I created the attached ps with the command:

> post(tree)

which according to the report is pretty much equivalent to:

> plot(tree, uniform = T, branch = 0.2, compress = T, margin = 0.1)
> text(tree, all = T, use.n=T, fancy = T)

As for my system info:

> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32

locale:
LC_COLLATE=English_Canada.1252;LC_CTYPE=English_Canada.1252;LC_MONETARY=English_Canada.1252;LC_NUMERIC=C;LC_TIME=English_Canada.1252

attached base packages:
[1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base"
other attached packages:
  rpart
"3.1-34"


Thank you,

Volker

Attachment: temptree.pr.ps
Description: PostScript document

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to