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(), andcolorRampPalette().
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.