Plot the elapsed time for each clustering method

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

Angelo Duo, Charlotte Soneson

Examples

res <- clustering_summary_filteredExpr10_Koh_v1()
#> see ?DuoClustering2018 and browseVignettes('DuoClustering2018') for documentation
#> loading from cache
plots <- plot_timing(res)