Skip to contents

Plot multiple time series with facet_wrap.

Usage

plot_oscillo_multi(
  ts.df,
  tzero = NULL,
  trange = NULL,
  facet.scale = "fixed",
  facet.label = NULL,
  order.of.mag = TRUE,
  title = NULL,
  color = NULL,
  width = 0.3,
  ...
)

Arguments

ts.df

A data frame containing time and multiple variables.

tzero

A numeric value indicating time shift (default: NULL).

trange

A numeric vector specifying time range to display.

facet.scale

One of "fixed", "free_y", or "free_x".

facet.label

Character vector for facet labels.

order.of.mag

Logical; whether to rescale y-axis using magnitude order.

title

A character string specifying the plot title.

color

A character for line color.

width

A numeric value for line width (default: 0.3).

...

Additional arguments for geom_line.

Value

A ggplot object.