[Rd] rpart: ylim problem in plotcp (PR#13530)

From: <jgvcqa_at_rit.edu>
Date: Mon, 16 Feb 2009 01:40:07 +0100 (CET)

Full_Name: Joe Voelkel
Version: 2.8.1
OS: Window
Submission from: (NULL) (

# Use of ylim in plotcp generates this message
# Error in plot.default [more stuff]
# formal argument "ylim" matched by multiple actual arguments

# Here is how to generate the bug (which the plotcp function tries to handle)
# and how to patch it--but at the loss of dots in plot

fit <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis) windows(5,5)
plotcp(fit,ylim=c(0,2)) # generates error message

fix(plotcp2) # I removed ,... from the plot function plotcp2(fit)
plotcp2(fit,ylim=c(0,2)) # patch works, but at cost of removing dots from plot

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 16 Feb 2009 - 01:47:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 Feb 2009 - 06:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive