Add a lineplot of the *x_key* and *y_key* columns in *data* to the supplied ggplot object *ax*. If none is supplied, a new one is created.
Usage
add_lines(
data,
ax = NULL,
y_key = "dBM_smooth",
x_key = "DOY",
style = "line",
label = NULL,
...
)
Arguments
- data
data.frame or similar object interpretable by ggplot.
- ax
list as returned by ggplot() and related functions.
- x_key, y_key
Column names in *data* to be plotted.
- style
XXX in ggplot geom_XXX to use.
- label
Codename for this line to be used in legend creation. If NULL, use *y_key*.
- ...
All further arguments are passed to the selected ggplot geom.