bar_plot: Plot bar plot

Description Usage Arguments

View source: R/graphing_functions.R

Description

Plots a bar plot using ggplot2.

Usage

1
2
3
4
5
6
7
8
bar_plot(
  data,
  variable,
  limits = c(0, 1000),
  title = NULL,
  xlab = NULL,
  ylab = "Count"
)

Arguments

data

The dataset that contains the variable to be plotted

variable

The variable to be plotted

limits

The minimum and maximum y values. By default, y-min set to 0 and y-max set to 1000.

title

The title of the figure. By default set to NULL.

xlab

The x label of the figure. By default set to NULL.

ylab

The y label of the figure. By default set to "Count".


arisp99/CAvaccines documentation built on Oct. 17, 2021, 11:13 p.m.