HI, Dear R-community,

I AM using the following codes to grow tree and plot tree:

# Classification Tree with rpart
library(rpart)

pdf(file="/home/cdu/changbin/dimer_tree.pdf")

# grow tree
fit.dimer <- rpart(outcome ~ ., method="class", data=p.dimer[,2:402])

plotcp(fit.dimer) # visualize cross-validation results


# plot tree
plot(fit.dimer, uniform=TRUE, main="Classification Tree for AA.dimer")
text(fit.dimer, use.n=TRUE, all=TRUE, cex=.8)


dev.off()

But when I open in the pdf file, I found the right side of tree is not shown
up, also part of the bottom of the tree did not show. HOW TO DEAL WITH THIS
PROBLEM?

THanks!

-- 
Sincerely,
Changbin
--

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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