mark_line(vl, orient = NULL, interpolate = NULL, tension = NULL, opacity = NULL, color = NULL, fill = NULL, stroke = NULL)
linear
step-before
, step-after
, basis
, basis-open
,
basis-closed
, bundle
, cardinal
, cardinal-open
,
cardinal-closed
, monotone
. For more information about each
interpolation method, please see D3’s line interpolation.0.0
-1.0
vegalite() %>%
cell_size(300, 300) %>%
add_data("https://vega.github.io/vega-editor/app/data/driving.json") %>%
encode_x("miles", "quantitative") %>%
encode_y("gas", "quantitative") %>%
encode_path("year", "temporal") %>%
scale_x_linear(zero=FALSE) %>%
scale_y_linear(zero=FALSE) %>%
mark_line()
Run the code above in your browser using DataLab