Add 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
)

Arguments

v

A vega() object.

encoding

An aesthetic mapping via enc().

data

A data frame for the layer.

selection

A selection object.

...

Additional mark properties.

na.rm

If TRUE, missing values are removed with a message. If FALSE, missing values are included.

position

One of "identity", "stack", "fill".

bin

A list of bin parameters.

density

Density parameters.

method

One of "lm" or "loess".

formula

One of:

  • y ~ x

  • y ~ x^2

  • y ~ x^order

  • y ~ log(x)

  • y ~ exp(x)

bandwidth

Degree of smoother.