stacked_composition_bar_chart {vvshiny}R Documentation

Stacked bar chart

Description

Create a stacked bar chart, with optional settings for percentage (or not) and wrap (or not) modes.

Usage

stacked_composition_bar_chart(
  df,
  x,
  color,
  id,
  facet_name_var = rlang::sym("VIS_Groep_naam"),
  percentage = FALSE,
  wrap = FALSE
)

Arguments

df

The data frame used to create the plot.

x

The variable used on the x-axis of the plot.

color

The variable used to color the points or bars in the plot.

id

The identifier for selecting the data frame source.

facet_name_var

The name of the variable used for facet wrapping.

percentage

Logical indicating whether to create a plot in percentage mode.

wrap

Logical indicating whether to use facet wrapping.

Value

A ggplot object.


[Package vvshiny version 0.1.1 Index]