Skip to contents

Creates, validates, binds, exports, and audits deterministic accessibility-aware figure presentation contracts.

Usage

new_publication_figure_style_profile(
  id, colours, linetypes, shapes, fills = colours,
  background = "#FFFFFF", foreground = "#000000",
  labels_required = TRUE, colour_alone = FALSE,
  min_contrast = 4.5, grayscale_safe = FALSE, version = "1.0.0"
)

validate_publication_figure_style_profile(profile)

publication_figure_style_profile(
  name = c("accessibility-first", "grayscale-safe", "standard-color")
)

bind_publication_figure_style(spec, layout, style, groups = 1L)

validate_publication_figure_style_binding(binding, spec, layout, style)

publication_figure_parameters(binding, style)

publication_figure_accessibility_audit(profile)

Arguments

id

Stable profile identifier.

colours

Ordered colour palette.

linetypes

Ordered line-type palette.

shapes

Ordered point-shape palette.

fills

Ordered fill palette.

background

Figure background colour.

foreground

Text and axis colour.

labels_required

Whether labels or legends are mandatory.

colour_alone

Whether colour may be the sole group encoding.

min_contrast

Minimum foreground/background contrast ratio.

grayscale_safe

Whether grayscale luminance separation is required.

version

Profile version.

profile

A publication figure-style profile.

name

A built-in profile name.

spec

A publication report specification.

layout

A publication layout profile.

style

A publication figure-style profile.

groups

Number of scientific groups requiring distinct aesthetics.

binding

A publication figure-style binding.

Value

A deterministic profile, binding, parameter list, audit record, or invisible TRUE.