Learn R Programming

s20x (version 3.3.0)

matchPlottingEngine: 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"))

Value

The matched plotting engine.

Arguments

engine

character plotting engine argument.

choices

character vector of accepted plotting engines.