| mark_point | R Documentation |
Add a point mark (scatterplot)
mark_point(spec, ..., data = NULL, style = list())
spec |
A glyph_spec |
... |
Aesthetic mappings (x, y, color, size, shape, alpha, tooltip) |
data |
Optional per-mark data override |
style |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.