Displaying 1 result from an estimated 1 matches for "lson".
Did you mean:
leon
2004 Aug 21
3
sweave and post "rpart"
...n{center}
<<fig=true,eps=T>>=
post(dtreeEB, title="Tree",digits=getOption("digits") - 0,use.n=TRUE)
@
\caption{Tree1}
\end{center}
\end{figure}
(1) if the rpart object result contain only the root node, i get this
error:
Error: chunk 21
Error in if (is.leaf[lson]) left <- list(left = x[lson], right = x[lson], :
missing value where TRUE/FALSE needed
(2) if the rpart object contains further nodes sweave finished fine, but
the plot-part contains no tree and "corupted" the tex-document, so
a tex2pdf isn't possible.
Many Thanks,
Christian