R/plot_enrich.R

Defines functions plot_enrich

Documented in plot_enrich

#' TPlots lines and cormat enrichment
#'
#' @param cor_list cor_list_object
#' @param name nem of enrichment
#' @param labels proteins to label yaxis
#'
#' @return
#' @export
#'
#'
plot_enrich <- function(cor_list, name, labels) {
  
  # Plot lines
  plot_dend_enrich_lines_(cor_list = cor_list, name = name)
  
  # Plot matrix
  if (!hasArg(labels)) {
    plot_cormat_enrichment(cor_list = cor_list, name = name)
  } else {
    plot_cormat_enrichment_labels(cor_list = cor_list, name = name, labels = labels)
  }
  
}
nicohuttmann/pOmics documentation built on Sept. 21, 2022, 9:28 a.m.