R/generics2.R

Defines functions plot.dmrs

#' @method plot dmrs
#' @export

plot.dmrs <- function(x, ..., type = 2){

if (type == 1){

  plot_out <- x[["plot_extreme"]]

} else if (type == 2){

  plot_out <- x[["plot_heatmap"]]

} else {

  stop(paste0("type should be 1 or 2, but instead it is ", type, "!"))
}

  return(plot_out)

}
jernejjevsenak/dendroTools documentation built on April 28, 2024, 5:09 p.m.