Skip to contents

Counts rows per x. Use arc_col() for values you have already summarised or set_stat() for any other aggregation.

Usage

arc_bar(.data, x, position = NULL)

Arguments

.data

Defines which data frame the chart draws its fields from.

x

Defines which column the bars are grouped by.

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

arc_bar(df, species)