parse_xpm {xvm} | R Documentation |
parse xpm (X PixMap) file content into structured data
Description
This function parses xpm file content, extracts metadata, color mappings, and matrix data, returning a structured list for further processing.
Usage
parse_xpm(xpm_content)
Arguments
xpm_content |
a character string containing the xpm file content. |
Value
a list with the following components:
data - Data frame containing matrix values with coordinates
title - Chart title extracted from xpm
legend - Legend text extracted from xpm
x_label - X-axis label extracted from xpm
y_label - Y-axis label extracted from xpm
color_map - Named list mapping color codes to hex values
color_values - Named list mapping color codes to numeric values
[Package xvm version 0.0.2 Index]