stacked_composition_bar_chart: Stacked bar chart

View source: R/server_ggplot.R

stacked_composition_bar_chartR 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.


vvshiny documentation built on July 26, 2023, 5:50 p.m.