vega() visualisationvega-marks.RdAdd new marks to vega() visualisation
mark_arc(v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE) mark_ribbon( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_boxplot( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_circle( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_errorband( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_image( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_line(v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE) mark_point( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_rect(v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE) mark_rule(v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE) mark_square( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_text(v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE) mark_tick(v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE) mark_trail( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_area( v, encoding = NULL, data = NULL, selection = NULL, position = "stack", ..., na.rm = TRUE ) mark_bar( v, encoding = NULL, data = NULL, selection = NULL, position = "stack", ..., na.rm = TRUE ) mark_errorbar( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_histogram( v, encoding = NULL, data = NULL, selection = NULL, position = "stack", ..., bin = TRUE, na.rm = TRUE ) mark_step(v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE) mark_density( v, encoding = NULL, data = NULL, selection = NULL, position = "identity", ..., density = list(), na.rm = TRUE ) mark_bin2d( v, encoding = NULL, data = NULL, selection = NULL, ..., bin = list(x = TRUE, y = TRUE), na.rm = TRUE ) mark_streamgraph( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_smooth( v, encoding = NULL, data = NULL, selection = NULL, ..., method = "lm", formula = y ~ x, bandwidth = 0.3, na.rm = TRUE ) mark_mosaic( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE ) mark_blank( v, encoding = NULL, data = NULL, selection = NULL, ..., na.rm = TRUE )
| v | A |
|---|---|
| encoding | An aesthetic mapping via |
| data | A data frame for the layer. |
| selection | A selection object. |
| ... | Additional mark properties. |
| na.rm | If |
| position | One of "identity", "stack", "fill". |
| bin | A list of |
| density | Density parameters. |
| method | One of "lm" or "loess". |
| formula | One of:
|
| bandwidth | Degree of smoother. |