powered by
Like the grayplot() function, but with the x-axis having date/times
grayplot()
timeplot(x, y, ..., n = 5, scale = NULL, format = NULL)
None.
X-axis coordinates of points for the plot (must be date/time values)
Y-axis coordinates of points for the plot
Optional graphics arguments passed to grayplot()
Approximate number of x-axis labels (passed to base::pretty()).
base::pretty()
Passed to time_axis() for defining the x-axis labels
time_axis()
time_axis(), grayplot(), dotplot()
dotplot()
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)
Run the code above in your browser using DataLab