Description Usage Arguments References Examples
A point mark represents each data point with a symbol.
1 2 |
vl |
Vega-Lite object |
shape |
The symbol shape to use. One of |
size |
The pixel area each the point. For example: in the case of circles, the radius is determined in part by the square root of the size value. |
opacity |
|
filled |
whether the shape's color should be used as fill color instead of stroke color. |
color |
color of the mark – either fill or stroke color based on the filled mark config. |
fill |
fill color. This config will be overridden by color channel’s specified or mapped values if filled is true. |
stroke |
stroke color. This config will be overridden by color channel’s specified or mapped values if filled is false. |
1 2 3 4 5 | vegalite() %>%
add_data("https://vega.github.io/vega-editor/app/data/cars.json") %>%
encode_x("Horsepower", "quantitative") %>%
encode_y("Miles_per_Gallon", "quantitative") %>%
mark_point()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.