Skip to contents

Plot - Bar

Usage

plot_bar(
  data,
  y,
  bar_width,
  fill,
  outline,
  position,
  labels,
  row,
  prop,
  column,
  theme,
  title,
  subtitle,
  xlab,
  ylab,
  caption,
  code
)

Arguments

data

data

y

variable on y axis

bar_width

width of bar

fill

fill

outline

outline

position

position of bars

labels

data labels

row

facet row in grid

prop

proportion

column

facet column in grid

theme

theme of plot

title

title of plot

subtitle

subtitle of plot

xlab

x-axis

ylab

y-axis label

caption

caption

code

add custom code

Value

No return value. This function is called for the side effect of launching a shiny application.

Examples

if (interactive()) {
  plot_bar(mtcars)
}