Format Label for Time Axis

DESCRIPTION:

Internal function to compute the format string for the time axis tick labels.

USAGE:

axis.time.label.format(style, by=NULL, k.by=NULL, year.digits=4,
                       date.style="US", alpha.sep.date=" ",
                       numeric.sep.date="/", day.style="abb",
                       month.style="abb", quarter.style="Q1",
                       zerofill=F, time.of.day.style="12:00")

REQUIRED ARGUMENTS:

style
a character string specifying the style of the format, selected from axis.label.style. Possible values are "time.of.day", "date", "day", "month.day", "month.year", "month", "quarter.year", "quarter", or "year".

OPTIONAL ARGUMENTS:

by
a character string specifying the calendar units of the tick mark, used to format time of day labels.
k.by
an integer specifying the increment of by units, used to format time of day labels.
year.digits
an integer specifying the number of digits to use in labeling the year. Setting to 0 makes label relative to style. Setting to 2 displays the last 2 digits of the year. Any other setting results in the full year being displayed.
date.style
a character string specifying the style of the date: "US" for month/day/year style and "International" for day/month/year style.
alpha.sep.date
a character string used to separate the month, day, and year fields of the date in alphabetical style of dates (e.g., Jan 3 1998).
numeric.sep.date
a character string used to separate the month, day, and year fields of the date in numerical style of dates (e.g., 1/3/1998).
day.style
a character string specifying the label style of the days. Possible values are "abb" for a 3 character abbreviation, "abb1" for a 1 character abbreviation, "name" for the full name, and "number" for the day of the month.
month.style
a character string specifying the label style of the months. Possible values are "abb" for a 3 character abbreviation, "abb1" for a 1 character abbreviation, "name" for a full name, and "number" (1-12).
quarter.style
a character string specifying the label style of the quarters. Possible values are "Q1", "1Q", and "I".
zerofill
if TRUE, numeric days and months will be zero-filled in dates (e.g., 01/01/98 versus 1/1/98).
time.of.day.style
a character string specifying the label style for the time of day. Possible values are 12:00 or 12 for a twelve hour clock without printing AM or PM, "am.pm" for a twelve hour clock with AM or PM printed, and "24" or "24:00"for a twenty-four hour clock. The difference between "12" and "12:00" is that if the labels are every hour or more, the latter will print the ":00" after the hours.

VALUE:

a character string giving the appropriate format for the labels.

SEE ALSO:

, .