stacked_bar: Create a Stacked Bar Chart

Description Usage Arguments Value Examples

View source: R/stacked_bar.R

Description

Draw a vertically stacked bar chart with ggplot2

Usage

1
2
stacked_bar(x, col = NULL, top = NULL, title = NULL,
  x_label = NULL, y_label = NULL)

Arguments

x

a data frame

col

the column to be stacked, quoted

top

the number of items to include, numeric

title

chart title, quoted

x_label

chart x axis label, quoted

y_label

chart y axis label, quoted

Value

plot

Examples

1
2
3
## Not run: stacked_bar(affiliations, col = "normalizedname", top = 10, 
title = "Papers by Affiliation", x_label = "Affiliation", y_label = "Publication Count")
## End(Not run)

poldham/kenlitr documentation built on Nov. 5, 2019, 12:59 a.m.