R/plot_top30percent_coefficients.R

Defines functions plot_top30percent_coefficients.geneSignature plot_top30percent_coefficients

Documented in plot_top30percent_coefficients

#' Plot of the highest 30 percentage of coefficients per cluster
#'
#' @param object An object of class "geneSignature"
#' @return A plot of the highest 30 percentage of coefficients per cluster
#' @export
#'
#' @examples
#' gs.object <- geneSignatures(toy_genes, toy_gene_memberships)
#' plot_top30percent_coefficients(gs.object)
plot_top30percent_coefficients <- function(object) {
    UseMethod("plot_top30percent_coefficients")
}
#' @export
plot_top30percent_coefficients.geneSignature <- function(object) {
    object$top30percent.coefficients
}
BioSok/omada documentation built on Aug. 21, 2023, 2:38 p.m.