#' function for pheatmap
#' @description function for pheatmap
#' @export
scale_mat = function(mat, scale){
if(!(scale %in% c("none", "row", "column"))){
stop("scale argument shoud take values: 'none', 'row' or 'column'")
}
mat = switch(scale, none = mat, row = scale_rows(mat), column = t(scale_rows(t(mat))))
return(mat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.