Plot timeseries data
Usage
plot_timeseries(
data,
x,
y,
breaks = NULL,
x_label = NULL,
y_label = NULL,
title = NULL,
line_colour = "blue",
horizontal_y = NULL,
vertical_x = NULL,
x_lim = NULL,
y_lim = NULL
)
Arguments
- data
Data to plot (data.frame with x-axis column a character convertible to Date)
- x
Name of column to plot on x-axis
- y
Name of column to plot on y-axis
- breaks
Date break points, must be a sequence of dates
- x_label
x-axis label
- y_label
y-axis label
- title
Figure title
- line_colour
Line colour
- horizontal_y
y-intercept for horizontal line
- vertical_x
x-intercept for vertical line
- x_lim
Limits for x-axis continuous scale, vector passed to scale_x_continuous
- y_lim
Limits for y-axis continuous scale, vector passed to scale_y_continuous
- line_width
Line width