Hi, have anybody positive experience how it is possible get the post output from a rpart-object in a large sweave file or is only the less nicely plot function instead of post possible??? \begin{figure}[htbp] \begin{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
On Sat, 21 Aug 2004, Christian Schulz wrote:> Hi, > > have anybody positive experience how > it is possible get the post output from a > rpart-object in a large sweave file or is only the > less nicely plot function instead of post possible??? > > \begin{figure}[htbp] > \begin{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 thisThat's not a tree so an error is probably correct if not so unfriendly a one. Perhaps you would like to submit a patch to the *authors*, cc the maintainer.> 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.post.rpart() does not produce graphics output on the open device. If you trouble to read its help page, you will see the solution in the Details: section. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595
Hi! I would like to unsubscribe this mailing list, but I do not know how to do that. It is my humble request to mailing list administrator to delete my email address from the list. Thanks a lot. with regards; Santosh
Santosh Kumar wrote:> Hi! > > I would like to unsubscribe this mailing list, but I do not know how to do > that. It is my humble request to mailing list administrator to delete my > email address from the list. > > Thanks a lot. > > with regards; > SantoshArrgh! If you were on this list before, have you never noticed the lines below all the messages:> ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlThe second one tells you how to unsubscribe (please use that way in order to reduce the load of work of the list administrator - thanks again to Martin!). The third one tells you not to post questions like this on the list, as well as using a sensible subject line! Uwe Ligges