Processes boxplot layers (geom_boxplot) to extract statistical data and generate selectors for individual boxplot components in the SVG structure.
maidr::LayerProcessor -> Ggplot2BoxplotLayerProcessor
Inherited methods
maidr::LayerProcessor$apply_scale_mapping()maidr::LayerProcessor$extract_layer_axes()maidr::LayerProcessor$get_last_result()maidr::LayerProcessor$get_layer_index()maidr::LayerProcessor$initialize()maidr::LayerProcessor$needs_reordering()maidr::LayerProcessor$reorder_layer_data()maidr::LayerProcessor$set_last_result()
process()Ggplot2BoxplotLayerProcessor$process(plot, layout, built = NULL, gt = NULL)plotThe ggplot2 object
layoutLayout information
builtBuilt plot data (optional)
gtGtable object (optional)
List with data and selectors Extract data from boxplot layer
extract_data()Ggplot2BoxplotLayerProcessor$extract_data(plot, built = NULL)plotThe ggplot2 object
builtBuilt plot data (optional)
List with boxplot statistics for each category Generate selectors for boxplot elements
generate_selectors()Ggplot2BoxplotLayerProcessor$generate_selectors(plot, gt = NULL)plotThe ggplot2 object
gtGtable object (optional)
List of selectors for each boxplot Determine if the boxplot is horizontal or vertical
determine_orientation()Ggplot2BoxplotLayerProcessor$determine_orientation(plot)plotThe ggplot2 object
"horz" or "vert" Map numeric category codes to actual category names Uses panel_params axis labels from ggplot_build to map codes to labels
map_categories_to_names()Ggplot2BoxplotLayerProcessor$map_categories_to_names(boxplot_data, plot)boxplot_dataList of boxplot statistics
plotThe ggplot2 object
Updated boxplot data with proper category names Find the main panel grob
find_panel_grob()Ggplot2BoxplotLayerProcessor$find_panel_grob(gt)gtThe gtable to search
The panel grob or NULL Find children by type pattern
find_children_by_type()Ggplot2BoxplotLayerProcessor$find_children_by_type(grob, type_pattern)grobThe grob to search
type_patternPattern to match
List of matching children Find the outlier container within a boxplot
find_outlier_container()Ggplot2BoxplotLayerProcessor$find_outlier_container(gt, boxplot_id)gtThe gtable object
boxplot_idThe boxplot container ID
The outlier container ID or NULL Find the box container within a boxplot
find_box_container()Ggplot2BoxplotLayerProcessor$find_box_container(gt, boxplot_id)gtThe gtable object
boxplot_idThe boxplot container ID
The box container ID or NULL Find the whisker container within a boxplot
find_whisker_container()Ggplot2BoxplotLayerProcessor$find_whisker_container(gt, boxplot_id)gtThe gtable object
boxplot_idThe boxplot container ID
The whisker container ID or NULL Find the median container within a boxplot
find_median_container()Ggplot2BoxplotLayerProcessor$find_median_container(gt, boxplot_id)gtThe gtable object
boxplot_idThe boxplot container ID
The median container ID or NULL Find a child element by pattern within a container
find_child_by_pattern()Ggplot2BoxplotLayerProcessor$find_child_by_pattern(gt, container_id, pattern)gtThe gtable object
container_idThe container ID to search within
patternPattern to match
The matching child ID or NULL
clone()The objects of this class are cloneable with this method.
Ggplot2BoxplotLayerProcessor$clone(deep = FALSE)deepWhether to make a deep clone.