cas_show_barchart_ggplot2: Creates barchart with ggplot2

View source: R/cas_show_barchart.R

cas_show_barchart_ggplot2R Documentation

Creates barchart with ggplot2

Description

Creates barchart with ggplot2

Usage

cas_show_barchart_ggplot2(ggobj, position = "stack")

Arguments

ggobj

A ggplot2 object, typically generated with cas_show_gg_base()

position

Defaults to "dodge". Available values include "stack".

Value

A ggplot2 object.

Examples

cas_count(
  corpus = castarter::cas_demo_corpus,
  pattern = c("putin", "medvedev")
) |>
  cas_summarise(period = "year") |>
  cas_show_gg_base() |>
  cas_show_barchart_ggplot2(position = "stack")

giocomai/castarter documentation built on June 12, 2025, 8:49 p.m.