Skip to contents

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 = tifkremlinen::kremlin_en,
pattern = c("putin", "medvedev")) |> 
  cas_summarise(period = "year") |> 
  cas_show_gg_base() |> 
  cas_show_barchart_ggplot2(position = "stack")