y_time: Plot continuous data versus time

View source: R/cont.R

y_timeR Documentation

Plot continuous data versus time

Description

Plot continuous data versus time

Usage

y_time(
  df,
  x = pm_axis_time(),
  y,
  xunit = opts$time.unit,
  yname = NULL,
  xs = list(),
  ys = list(),
  log = FALSE,
  xby = NULL,
  ...
)

Arguments

df

data frame to plot

x

character name for x-axis data

y

character name for y-axis data

xunit

used to form x-axis title

yname

used to form y-axis title

xs

see defx

ys

see defy

log

if TRUE, y-axis will be log-transformed

xby

interval for breaks on x-axis (time)

...

passed to scatt

Details

This function is intended for internal use.

When the y-axis label needs a unit, include it in the yname specification.

Since this function creates a scatter plot, both the x and y columns must be numeric.

The xby argument is provided for convenience to set breaks for time scales.

Value

A single plot.

See Also

res_time, cwres_time, wres_time, npde_time


metrumresearchgroup/pmplots documentation built on Oct. 15, 2024, noon