Plot a timeDate Object

DESCRIPTION:

Plot function for plotting a "timeDate" object on either or both axis. This function is typically called by plot methods and not directly by the user.

USAGE:

plotTimeDate(x, y, ..., main="", xlab=deparse(substitute(x), short=T),
             ylab=deparse(substitute(y), short = T), xlim, ylim,
             x.axis.args=list(), y.axis.args=list(), axes = T)

REQUIRED ARGUMENTS:

x
an object of class "timeDate" or a numeric object.
y
an object of class "timeDate" or a numeric object.

OPTIONAL ARGUMENTS:

...
additional plot arguments can be specified by name.
main
a character string, the main title for the plot.
xlab
a character string, the x-axis label for the plot.
ylab
a character string, the y-axis label for the plot.
xlim
an object of length two that sets the limits for the x-axis. If x is of class "timeDate" then this must also be of class "timeDate".
ylim
an object of length two that sets the limits for the y-axis. If y is of class "timeDate" then this must also be of class "timeDate".
x.axis.args
a list of parameters to for customizing the x-axis. If x is of class "timeDate" then list gets passed to the function axis.time. If x is numeric the list is passed to axis.numeric.
y.axis.args
a list of parameters to for customizing the x-axis. If y is of class "timeDate" then list gets passed to the function axis.time. If y is numeric the list is passed to axis.numeric.
axes
if T x and y axes are displayed..

SIDE EFFECTS:

A plot will be produced on the active device.

SEE ALSO:

, .

EXAMPLES:

xtd <- timeDate(c("1/12/1981", "2/13/1982", "3/14/1983", "4/15/1984",
        "5/16/1985"))
y <- c(2, 3, 5, 7, 11)
plot(xtd, y)  # Calls plotTimeDate as a plot method
plotTimeDate(xtd, y)  # Same plot as above