Skip to contents

Parameters to customize zeroline in roboplots.

Usage

set_zeroline(
  position = NULL,
  color = getOption("roboplot.zeroline")$color,
  width = getOption("roboplot.zeroline")$width
)

Arguments

position

Numeric or logical. The position of the zeroline. If TRUE, the line is drawn at 0.

color

Character. Must be a hexadecimal color or a valid css color.

width

Numeric.

Value

A list of class roboplotr.set_zeroline

Examples

set_roboplot_options(zeroline = set_zeroline(color = "aliceblue", width = 4))
energiantuonti |> dplyr::filter(Alue == "Venäjä") |> roboplot(Suunta, zeroline = 200)