esm_ts: Wrapper function to create timeseries line plot.

Description Usage Arguments Value

View source: R/esm_ts.R

Description

Wrapper function to create timeseries line plot.

Usage

1
2
esm_ts(data = NULL, var_date = NULL, lines = NULL, outcome = NULL,
  vis_options = NULL)

Arguments

data

A dataframe.

var_date

A string with the name of the date-variable for the x-axis.

lines

A string with name of variable specifying the different groups which will be represented as different lines.

outcome

A string with name of variable specifying the outcome.

vis_options

A list with options for the graph. The possibilities for the vis_options are: "line = TRUE/FALSE"; whether or not a line should be drawn "point = TRUE/FALSE"; whether or not points/dots should be drawn "smooth = TRUE/FALSE"; whether or not smoothening line should be drawn. "kernel = ..."; parameter to control the degree of smoothening (between 0 and 1). "se_band = TRUE/FALSE"; whether or not confidence band should be drawn around smoothening line. "axis_limits = ..."; vector with lower and upper limit of y-axis (e.g., c(0, 10))

Value

A ggplot-object/graph.


gertstulp/ESMvis documentation built on May 17, 2019, 11:16 p.m.