Plot one or more variables as line chart.
Usage
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(),
...
)
Arguments
- data
A
data.frame
,tibble
ortsibble
in long format.- x
Unquoted column within
.data
.- y
Unquoted column within
.data
containing numeric values.- facet_var
Unquoted column within
.data
(facet).- facet_scale
Character value defining axis scaling (
facet_var = "free"
orfacet_var = "fixed"
).- facet_nrow
Integer value. The number of rows.
- facet_ncol
Integer value. The number of columns.
- color
Unquoted column within
.data
(color).- title
Title of the plot.
- subtitle
Subtitle of the plot.
- xlab
Label for the x-axis.
- ylab
Label for the y-axis.
Caption of the plot.
- line_size
Numeric value defining the line width.
- line_type
Numeric value defining the line type.
- line_color
Character value defining the line color (ignored if
color
is present).- line_alpha
Numeric value defining the transparency of the line.
- theme_set
A complete ggplot2 theme.
- theme_config
A list with further arguments passed to
ggplot2::theme()
.- ...
Currently not in use.