Factory for creating ggplot2-specific processors. This factory uses the existing ggplot2 layer processors and wraps them in the new unified interface.
An R6 class inheriting from ProcessorFactory
maidr::ProcessorFactory -> Ggplot2ProcessorFactory
Inherited methods
new()Ggplot2ProcessorFactory$new()
create_processor()Ggplot2ProcessorFactory$create_processor(plot_type, layer_info)plot_typeThe type of plot (e.g., "bar", "line", "point")
layer_infoInformation about the layer (contains plot object and metadata)
Processor instance for the specified plot type Get list of supported plot types
get_supported_types()Ggplot2ProcessorFactory$get_supported_types()Character vector of supported plot types Get the system name
get_system_name()Ggplot2ProcessorFactory$get_system_name()System name string Check if a specific processor class is available
is_processor_available()Ggplot2ProcessorFactory$is_processor_available(processor_class_name)processor_class_nameName of the processor class
TRUE if available, FALSE otherwise Get available processor classes
get_available_processors()Ggplot2ProcessorFactory$get_available_processors()Character vector of available processor class names Create a processor with error handling
try_create_processor()Ggplot2ProcessorFactory$try_create_processor(plot_type, plot_object)plot_typeThe type of plot
plot_objectThe plot object
Processor instance or NULL if creation fails
clone()The objects of this class are cloneable with this method.
Ggplot2ProcessorFactory$clone(deep = FALSE)deepWhether to make a deep clone.