Skip to contents

Plot a bar chart using ggplot2

Usage

plot_barchart(
  data,
  x,
  y,
  breaks,
  x_label,
  y_label,
  fill = "pink",
  colour = "blue"
)

Arguments

data

Data to plot

x

x-axis data

y

y-axis data

breaks

Break points

x_label

x-axis label

y_label

y-axis label

fill

Fill colour

colour

Line colour

Value

ggplot