R/oncoprint.legend.R

Defines functions oncoprint.legend

# oncoprint.legend: function specify name and colors of the oncoprint legend lesion groups

oncoprint.legend = function(lsn.type){
  res <- list()
  res$title <- 'Lesion Category'
  res$at <- lsn.type
  res$labels <- sub('^(\\w?)', '\\U\\1', lsn.type, perl=T)
  return(res)
}

Try the GRIN2 package in your browser

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

GRIN2 documentation built on April 4, 2025, 1:41 a.m.