Skip to content

bubble

2D bubble plot — scatter with marker area encoding a third variable.

h = bubble(x, y, a, c, ...)

Like scatter but the marker size scales with a rather than being a fixed value. Common for visualizing 3-variable data in 2D.

bubble(gdp, life_exp, population)
  • scatter — 2D scatter plot with optional size and color encoding.
  • bubble3 — 3D bubble plot.
  • bubble3d — 3D bubble plot rendered as actual spheres (volumetric).