What are the cp values on the rpart plotcp() chart? I would expect these values to match the cp column in printcp(), but instead the following scale is calculated (from the plotcp code):
p.rpart <- x$cptable
cp0 <- p.rpart[, 1L]
cp <- sqrt(cp0 * c(Inf, cp0[-length(cp0)]))
So each cp value from the CV table is multiplied against the following one in the same column and then square rooted. Why?