Plot one or more variables as line chart.
plot_line(
data,
x,
y,
facet_var = NULL,
facet_scale = "free",
facet_nrow = NULL,
facet_ncol = NULL,
color = NULL,
title = NULL,
subtitle = NULL,
xlab = NULL,
ylab = NULL,
caption = NULL,
line_size = 0.75,
line_type = "solid",
line_color = "grey35",
line_alpha = 1,
theme_set = theme_tscv(),
theme_config = list(),
...
)
A data.frame
, tibble
or tsibble
in long format.
Unquoted column within .data
.
Unquoted column within .data
containing numeric values.
Unquoted column within .data
(facet).
Character value defining axis scaling (facet_var = "free"
or facet_var = "fixed"
).
Integer value. The number of rows.
Integer value. The number of columns.
Unquoted column within .data
(color).
Title of the plot.
Subtitle of the plot.
Label for the x-axis.
Label for the y-axis.
Caption of the plot.
Numeric value defining the line width.
Numeric value defining the line type.
Character value defining the line color (ignored if color
is present).
Numeric value defining the transparency of the line.
A complete ggplot2 theme.
A list with further arguments passed to ggplot2::theme()
.
Currently not in use.
p An object of class ggplot.