timeplot: Scatterplot with date/times on the x-axis

View source: R/timeplot.R

timeplotR Documentation

Scatterplot with date/times on the x-axis

Description

Like the grayplot() function, but with the x-axis having date/times

Usage

timeplot(x, y, ..., n = 5, scale = NULL, format = NULL)

Arguments

x

X-axis coordinates of points for the plot (must be date/time values)

y

Y-axis coordinates of points for the plot

...

Optional graphics arguments passed to grayplot()

n

Approximate number of x-axis labels (passed to base::pretty()).

scale

Passed to time_axis() for defining the x-axis labels

format

Passed to time_axis() for defining the x-axis labels

Value

None.

See Also

time_axis(), grayplot(), dotplot()

Examples

n <- 100
y <- rnorm(n)
x <- seq(as.POSIXct("2024-05-01 11:23"), as.POSIXct("2024-05-01 14:50"), length.out=n)
timeplot(x, y)

broman documentation built on May 29, 2024, 7:18 a.m.

Related to timeplot in broman...