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 (all data types recognised by ggplot2::geom_bar() like data.frame)
- x
x-axis data, must be a Date object
- y
y-axis data
- breaks
Break points, must be a sequence of dates
- x_label
x-axis label
- y_label
y-axis label
- fill
Fill colour
- colour
Line colour