Counts rows per x. Use arc_col() for values you have already summarised
or set_stat() for any other aggregation.
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 howset_color()groups are placed, one of"dodge","stack", or"fill". Seeset_position().
Examples
df <- data.frame(species = c("a", "a", "b"), mass = c(1, 5, 3))
arc_bar(df, species)