Processes line plot layers using the actual gridSVG structure discovered: - Lines: GRID.polyline.61.1.1, GRID.polyline.61.1.2, GRID.polyline.61.1.3 - Points: geom_point.points.63.1.1 through geom_point.points.63.1.24 (grouped by series)
maidr::LayerProcessor -> Ggplot2LineLayerProcessor
layer_infoInformation about the layer being processed
last_resultThe last processing result
layer_infoInformation about the layer being processed
last_resultThe last processing result
Inherited methods
process()Ggplot2LineLayerProcessor$process(
plot,
layout,
built = NULL,
gt = NULL,
scale_mapping = NULL,
grob_id = NULL,
panel_id = NULL,
panel_ctx = NULL
)plotThe ggplot2 object
layoutLayout information
builtBuilt plot data (optional)
gtGtable object (optional)
scale_mappingScale mapping for faceted plots (optional)
grob_idGrob ID for faceted plots (optional)
panel_idPanel ID for faceted plots (optional)
List with data and selectors Extract data from line layer (single or multiline)
extract_data()Ggplot2LineLayerProcessor$extract_data(
plot,
built = NULL,
scale_mapping = NULL,
panel_id = NULL
)plotThe ggplot2 object
builtBuilt plot data (optional)
scale_mappingScale mapping for faceted plots (optional)
panel_idPanel ID for faceted plots (optional)
List of arrays, each containing series data points Extract data for multiple line series
extract_multiline_data()Ggplot2LineLayerProcessor$extract_multiline_data(layer_data, plot)layer_dataThe built layer data
plotThe original ggplot2 object
List of arrays, each containing series data Extract data for single line (backward compatibility)
extract_single_line_data()Ggplot2LineLayerProcessor$extract_single_line_data(layer_data)layer_dataThe built layer data
List containing single series data Get the grouping column name from plot mappings
get_group_column()Ggplot2LineLayerProcessor$get_group_column(plot)plotThe ggplot2 object
Name of the grouping column Generate selectors using actual SVG structure
generate_selectors()Ggplot2LineLayerProcessor$generate_selectors(
plot,
gt = NULL,
grob_id = NULL,
panel_ctx = NULL
)plotThe ggplot2 object
gtGtable object (optional)
grob_idGrob ID for faceted plots (optional)
List of selectors for each series Generate selectors for multiline plots using actual structure
generate_multiline_selectors()Ggplot2LineLayerProcessor$generate_multiline_selectors(base_id, num_series)base_idThe base ID from the grob (e.g., "61")
num_seriesNumber of series
List of selectors Generate selector for single line plot
generate_single_line_selector()Ggplot2LineLayerProcessor$generate_single_line_selector(base_id)base_idThe base ID from the grob
List with single selector Find the main polyline grob (GRID.polyline.XX)
find_main_polyline_grob()Ggplot2LineLayerProcessor$find_main_polyline_grob(gt)gtThe gtable to search
The main polyline grob or NULL Check if layer needs reordering
needs_reordering()Ggplot2LineLayerProcessor$needs_reordering()FALSE (line plots typically don't need reordering)
clone()The objects of this class are cloneable with this method.
Ggplot2LineLayerProcessor$clone(deep = FALSE)deepWhether to make a deep clone.