Central registry for managing different plotting systems and their adapters. This registry allows dynamic registration and discovery of plotting systems and their associated adapters and processor factories.
An R6 class
register_system()PlotSystemRegistry$register_system(system_name, adapter, processor_factory)system_nameName of the plotting system (e.g., "ggplot2", "base_r")
adapterAdapter instance for this system
processor_factoryProcessor factory instance for this system Detect which system can handle a plot object
detect_system()PlotSystemRegistry$detect_system(plot_object)plot_objectThe plot object to check
System name if found, NULL otherwise Get the adapter for a specific system
get_adapter()PlotSystemRegistry$get_adapter(system_name)system_nameName of the system
Adapter instance Get the processor factory for a specific system
get_processor_factory()PlotSystemRegistry$get_processor_factory(system_name)system_nameName of the system
Processor factory instance Get the adapter for a plot object (auto-detect system)
get_adapter_for_plot()PlotSystemRegistry$get_adapter_for_plot(plot_object)plot_objectThe plot object
Adapter instance Get the processor factory for a plot object (auto-detect system)
get_processor_factory_for_plot()PlotSystemRegistry$get_processor_factory_for_plot(plot_object)plot_objectThe plot object
Processor factory instance List all registered systems
list_systems()PlotSystemRegistry$list_systems()Character vector of registered system names Check if a system is registered
is_system_registered()PlotSystemRegistry$is_system_registered(system_name)system_nameName of the system
TRUE if registered, FALSE otherwise Unregister a system
unregister_system()PlotSystemRegistry$unregister_system(system_name)system_nameName of the system to unregister
clone()The objects of this class are cloneable with this method.
PlotSystemRegistry$clone(deep = FALSE)deepWhether to make a deep clone.