bar_plot.RdConstructs frequency bar plot of a vector of numeric data or a vector of character data
bar_plot(y, ...)
| y | vector of outcomes |
|---|---|
| ... | title of the graph |
A frequency bar graph of the outcomes
y <- c(rep("a", 10), rep("b", 5), rep("c", 8), rep("d", 4)) bar_plot(y)