R/marks.R
mark_point.Rd
Add a point mark (scatterplot)
mark_point(spec, ..., data = NULL, style = list())
A glyph_spec
Aesthetic mappings (x, y, color, size, shape, alpha, tooltip)
Optional per-mark data override
Named list of fixed visual properties
Modified glyph_spec
spec <- glyph(mtcars, x = wt, y = mpg) |> mark_point(color = cyl, size = hp, tooltip = "{cyl} cyl, {mpg} mpg")