Skip to main content

Module graphics

Module graphics 

Source
Expand description

Graphics builtins — high-level R plotting functions that accumulate PlotItems in the interpreter’s PlotState, then display via egui_plot (when the plot feature is enabled) or print a helpful message (when it is not).

Modules§

color
Color palette generation functions — rainbow(), heat.colors(), terrain.colors(), topo.colors(), cm.colors(), gray.colors(), hsv(), hcl(), and colorRampPalette().

Statics§

__BUILTIN_REG_BUILTIN_AXIS 🔒
__INTERP_REG_INTERP_ABLINE 🔒
__INTERP_REG_INTERP_BARPLOT 🔒
__INTERP_REG_INTERP_BMP 🔒
__INTERP_REG_INTERP_BOXPLOT 🔒
__INTERP_REG_INTERP_DEV_CUR 🔒
__INTERP_REG_INTERP_DEV_LIST 🔒
__INTERP_REG_INTERP_DEV_NEW 🔒
__INTERP_REG_INTERP_DEV_OFF 🔒
__INTERP_REG_INTERP_HIST 🔒
__INTERP_REG_INTERP_JPEG 🔒
__INTERP_REG_INTERP_LEGEND 🔒
__INTERP_REG_INTERP_LINES 🔒
__INTERP_REG_INTERP_PAIRS 🔒
__INTERP_REG_INTERP_PDF 🔒
__INTERP_REG_INTERP_PLOT 🔒
__INTERP_REG_INTERP_PNG 🔒
__INTERP_REG_INTERP_POINTS 🔒
__INTERP_REG_INTERP_SVG 🔒
__INTERP_REG_INTERP_TITLE 🔒

Functions§

builtin_axis 🔒
Add an axis to the current plot.
default_palette_color 🔒
Default palette: R’s default color cycle.
df_get_column 🔒
Look up a column in a data frame (RList) by name.
ensure_plot 🔒
Ensure a current plot exists, creating a new one if needed.
extract_doubles 🔒
Extract a numeric vector from an RValue, filtering out NAs.
extract_limits 🔒
Extract a (lo, hi) range from a two-element numeric vector.
flush_plot
Public API: flush any accumulated plot to the GUI thread. Called by the REPL loop after each eval to auto-display plots.
interp_abline 🔒
Add horizontal, vertical, or slope-intercept lines to the current plot.
interp_barplot 🔒
Create a bar plot from a numeric vector.
interp_bmp 🔒
Open a BMP graphics device.
interp_boxplot 🔒
Create box-and-whisker plots.
interp_dev_cur 🔒
Return the current graphics device number.
interp_dev_list 🔒
List all open graphics devices.
interp_dev_new 🔒
Open a new graphics device.
interp_dev_off 🔒
Close the current graphics device.
interp_hist 🔒
Compute a histogram and display it as a bar chart.
interp_jpeg 🔒
Open a JPEG graphics device.
interp_legend 🔒
Add a legend to the current plot.
interp_lines 🔒
Add connected line segments to the current plot.
interp_pairs 🔒
Scatterplot matrix — plots all pairwise combinations of numeric columns.
interp_pdf 🔒
Open a PDF graphics device.
interp_plot 🔒
Create a scatter plot, line plot, or combined plot.
interp_png 🔒
Open a PNG graphics device.
interp_points 🔒
Add points to the current plot.
interp_svg 🔒
Open an SVG graphics device.
interp_title 🔒
Set or update plot titles.
parse_color 🔒
Parse an R color specification to RGBA.
parse_color_string 🔒
Parse a color string: named color or hex.
parse_hex_color 🔒
Parse a hex color string like “#RRGGBB” or “#RRGGBBAA”.
percentile 🔒
Compute a percentile from sorted data using linear interpolation.
rhs_symbol_name 🔒
Extract a simple symbol name from a formula side (lhs or rhs).
send_current_plot 🔒
try_extract_doubles 🔒
Try to extract a double vector from an optional RValue.