[R] something missing from the graph of recursive partitioning

Vladimir N. Kutinsky kutinskyv at obninsk.com
Fri Feb 8 17:21:08 CET 2002


Hi,

Try to enlarge the width and height in postscript command ("rpart.ps",
width=..., height=...)

Vlad

dechao wang wrote:

> 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
>
>   ------------------------------------------------------------------------
>                   Name: rpart.ps
>    rpart.ps       Type: Postscript Document (application/postscript)
>               Encoding: base64
>            Description: rpart.ps

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list