Skip to contents

Add errorbar config (ErrorBarConfig) to a vega-lite spec.

Usage

vl_config_errorbar(
  spec,
  extent = NULL,
  rule = NULL,
  size = NULL,
  thickness = NULL,
  ticks = NULL,
  .object = NULL
)

Arguments

spec

An input vega-lite spec

extent

The extent of the rule. Available options include:

  • "ci": Extend the rule to the confidence interval of the mean.

  • "stderr": The size of rule are set to the value of standard error, extending from the mean.

  • "stdev": The size of rule are set to the value of standard deviation, extending from the mean.

  • "iqr": Extend the rule to the q1 and q3.

Default value: "stderr".

rule

boolean

Or: MarkConfig

size

Size of the ticks of an error bar

thickness

Thickness of the ticks and the bar of an error bar

ticks

boolean

Or: MarkConfig

.object

Directly input an object, rather than creating one via the other arguments. Should not be used in conjunction with the other arguments other than spec. Objects can be of type: ErrorBarConfig

Value

A modified Vega-Lite Spec