plot-methods {timeDate} | R Documentation |
Plot methods for timeDate
objects.
## S4 method for signature 'timeDate': plot(x, y, ...) ## S4 method for signature 'timeDate': lines(x, y, ...) ## S4 method for signature 'timeDate': points(x, y, ...) axis.timeDate(side, x, at, format = NULL, labels = TRUE, ...)
x, y, at |
an object of class timeDate .
|
side |
an integer specifying which side of the plot the axis is to be drawn on. The axis is placed as follows: 1=below, 2=left, 3=above and 4=right. |
format |
format - format string. |
labels |
either a logical value specifying whether annotations are to be made at the tickmarks, or a vector of character strings to be placed at the tickpoints. |
... |
arguments passed to other methods. |
returns a summary report of the details of a timeDate
object. This includes the starting and end date, the number of
dates the format and the financial center in use.
These S3 methods will become S4 methods in the future.
## timeCalendar - x <- timeCalendar() y <- rnorm(12) ## Plotting : plot(x, y, type = "l") points(x, y, pch = 19, col = "red") plot(x, y, type = "l", xaxt = "n") axis.timeDate(1, at = x[c(1, 3, 5, 7, 9, 11)], format = "%b") axis.timeDate(1, at = x[12], format = "%Y")