plot_timing: Plot timing of methods

View source: R/plot_timing.R

plot_timingR Documentation

Plot timing of methods

Description

Plot the elapsed time for each clustering method

Usage

plot_timing(res, method_colors = NULL, scaleMethod = NULL)

Arguments

res

A data.frame with clustering results.

method_colors

A named vector with colors to use for the different clustering methods. Can be NULL, in which case colors are chosen automatically.

scaleMethod

Either NULL or one of the clustering methods in the result data.frame. If not NULL, a plot will be generated where all elapsed times are normalized by dividing with the time for scaleMethod. If NULL, this plot will not be generated.

Value

A named list of ggplot2 objects

Author(s)

Angelo Duo, Charlotte Soneson

Examples

res <- clustering_summary_filteredExpr10_Koh_v1()
plots <- plot_timing(res)


csoneson/DuoClustering2018 documentation built on July 4, 2023, 2:23 p.m.