R/plot.R

Defines functions plot.lrp

Documented in plot.lrp

#' Plot function for longRPart2
#'
#' @param x A model from lrp.
#' @param ... Other arguments.
#' @method plot lrp
#' @export

plot.lrp <- function (x, ...){

  rp = x$rpart_out

  node.fun1 <- function(x, labs, digits, varlen)
  {
    paste("dev", round(summary(x)$frame$dev,2))
  }

  rpart.plot::rpart.plot(rp,nn=T,node.fun=node.fun1)
}

Try the longRPart2 package in your browser

Any scripts or data that you put into this service are public.

longRPart2 documentation built on Jan. 20, 2018, 9:23 a.m.