bar_plot: Bar plot of numeric or character data

Description Usage Arguments Value Author(s) Examples

View source: R/bar_plot.R

Description

Constructs frequency bar plot of a vector of numeric data or a vector of character data

Usage

1

Arguments

y

vector of outcomes

...

title of the graph

Value

A frequency bar graph of the outcomes

Author(s)

Jim Albert

Examples

1
2
3
4
  s <- spinner_data(c(1, 2, 2, 1), nsim=100)
  bar_plot(s, "Spinner Data")
  y <- c(rep("a", 10), rep("b", 5), rep("c", 8))
  bar_plot(y)

TeachBayes documentation built on May 1, 2019, 9:17 p.m.