A custom line plot with optional vertical line

line_plot(df, x, y, xintercept = NULL)

Arguments

df

data source

x

variable for horizontal axis

y

variable for vertical axis

xintercept

optional value in horizontal axis to highlight

Value

a ggplot2::ggplot object