The decisions a drawing makes

Description

Every value plot_masks(), plot_boxes(), overlay_mask() and overlay_agreement() use when you do not give them one: which colours mean found, missed and invented, one colour per class for plot_anchors(), how much of the image an overlay lets through, how a box is labelled, and which boxes are worth drawing at all.

Usage

drawing_style()

Details

They belong to the engine - pyplatypus.style - and are mirrored here so that drawing needs no Python. A test holds the two together, so the same call draws the same picture from either package.

Reach for this when you want to match a figure rather than restate it: passing colours = drawing_style()$box_colours to something else keeps one source, and typing the hex codes starts a second.

Value

A named list: agreement_colours, box_colours, class_colours, overlay_alpha, box_label_format and box_min_score.

See Also

plot_masks(), plot_boxes(), overlay_agreement()

Examples

library("rplatypus")

drawing_style()$agreement_colours[["missed"]]
[1] "#E63C3C"
# The same list the engine returns, which is what keeps the two drawings the same.
str(drawing_style())
List of 6
 $ agreement_colours: Named chr [1:3] "#3CDC5A" "#E63C3C" "#F0C83C"
  ..- attr(*, "names")= chr [1:3] "hit" "missed" "false_alarm"
 $ box_colours      : Named chr [1:2] "#d95f02" "#1b9e77"
  ..- attr(*, "names")= chr [1:2] "prediction" "truth"
 $ overlay_alpha    : num 0.55
 $ box_label_format : chr "%s %.2f"
 $ class_colours    : chr [1:8] "#1b9e77" "#d95f02" "#7570b3" "#e7298a" ...
 $ box_min_score    : num 0.5