matchPlottingEngine: Match a plotting engine argument

View source: R/plotting-engine-helpers.R

matchPlottingEngineR Documentation

Match a plotting engine argument

Description

Applies the standard plotting engine argument matching used by exported plotting functions. Keeping this in one place makes engine-dispatch cleanup stages less repetitive without changing the accepted engine values.

Usage

matchPlottingEngine(engine, choices = c("base", "ggplot2"))

Arguments

engine

character plotting engine argument.

choices

character vector of accepted plotting engines.

Value

The matched plotting engine.


s20x documentation built on July 1, 2026, 9:06 a.m.