Displaying 1 result from an estimated 1 matches for "dimer_tree".
Did you mean:
primer_tree
2010 Apr 19
0
help in output file
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...