Skip to contents

Plots y verbatim, one bar per row. Use arc_bar() to count rows instead.

Usage

arc_col(.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(species = c("a", "b", "c"), mass = c(1, 5, 3))

arc_col(df, species, mass)