Plot a line chart
Usage
plot_line(
data,
x,
y,
color = NULL,
zero = TRUE,
point = FALSE,
pal_name,
scale_name = "",
scale_label = ggplot2::waiver(),
...
)Arguments
- data
A data frame.
- x
<
data-masked> Variable mapped to the x-axis.- y
<
data-masked> Variable mapped to the y-axis.- color
Color of the line. Either a color string (e.g.,
"blue","#021841") for a single static color, or a bare column name (without quotes) to map a grouping variable to color.- zero
Whether to draw a horizontal line at
y = 0.- point
Whether to draw points over the line.
- pal_name
Name of the color palette.
- scale_name
Color legend title.
- scale_label
Color legend labels.
- ...
Additional arguments passed to
ggplot2::labs().

