Uses ECharts-GL in the browser and vector circles, paths, and text for SVG. The saved view uses the configured camera, not later browser rotations. Points omit missing coordinate/group rows together. Missing coordinates break paths within each group; groups keep their input order. A data frame or matrix can supply the coordinates in its first three columns, which must be numeric.
Usage
draw_scatter3d(
x,
y = NULL,
z = NULL,
group = NULL,
...,
theme = NULL,
width = NULL,
height = NULL,
element_id = NULL,
filename = NULL
)Arguments
- x
Numeric, matrix, or data frame: X values, or three coordinate columns.
- y, z
Optional Numeric: Y and Z values for vector x.
- group
Optional vector: Group identities.
- ...
Additional settings passed to
setup_Scatter3DConfig().- theme
Optional Theme: Theme override. The palette inside the theme can be overridden per-chart with the
colorargument.- width
Optional Character or Numeric: Widget width.
- height
Optional Character or Numeric: Widget height.
- element_id
Optional Character: Explicit DOM element ID for the widget container.
NULLlets htmlwidgets generate one.- filename
Optional Character: If provided, save the widget to this file via
save_drawing().