Skip to contents

Joins one point per row in x order. Use set_stat() to aggregate y first.

Usage

arc_line(.data, x, y, position = NULL)

Arguments

.data

Defines which data frame the chart draws its fields from.

x, y

Defines which columns supply the bar positions and heights.

position

default NULL. Defines how set_color() groups are placed, one of "dodge", "stack", or "fill". See set_position().

Value

An ArcChart.

Examples

df <- data.frame(year = c(2020, 2021, 2022), mass = c(1, 5, 3))

arc_line(df, year, mass)