[R] something missing from the graph of recursive partitioning
dechao wang
dechwang at yahoo.co.uk
Fri Feb 8 13:19:22 CET 2002
The following codes come from R example. I save its
graph as rpart.ps, but the graph did not display the
whole word, e.g. just display "bsent", not "absent" in
the most left. can you advise me how to solve it?
many thanks,
p.s, file rpart.ps is also attached.
library(rpart)
data(kyphosis)
fit <- rpart(Kyphosis ~ Age + Number + Start, data =
kyphosis)
fit2 <- rpart(Kyphosis ~ Age + Number + Start, data =
kyphosis,
parms = list(prior = c(0.65, 0.35), split =
"information"))
postscript("rpart.ps", width=960, height=960)
par(mfrow = c(1, 2))
plot(fit)
text(fit, use.n = TRUE)
plot(fit2)
text(fit2, use.n = TRUE)
dev.off()
__________________________________________________
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpart.ps
Type: application/postscript
Size: 4116 bytes
Desc: rpart.ps
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20020208/e8b9fbfe/rpart.ps
More information about the R-help
mailing list