Skip to main content

Colour, point shape and line type of the benchmarked methods

Description

A prolfqua method (‘prolfqua_<facade>’) takes the style of its facade from ‘facade_styles.tsv’ of prolfqua: the colour of its family in the factory figure of the prolfqua README, and a point shape and line type per method within the family. MSstats, proDA and msqrob2 are dark grey with open shapes. The vignettes style every plot with these scales, so a method looks the same in all of them.

Usage

method_scales(methods)

Arguments

methods method names as in the benchmark tables and the score history; a name without a style is an error.

Value

A list of ggplot2 scales for the ‘colour’, ‘shape’ and ‘linetype’ aesthetics, with the methods in the order of the factory figure and the external tools last.

Examples

library("prolfquabenchmark")

points <- data.frame(x = 1:3, y = 1:3, method = c("prolfqua_lm", "prolfqua_limma", "MSstats"))
ggplot2::ggplot(points, ggplot2::aes(x, y, colour = method, shape = method)) +
  ggplot2::geom_point(size = 3) +
  method_scales(points$method)